Skip to content

justinribeiro/lighthouse-autocompletion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

lighthouse-autocompletion

Command line auto-completion for Lighthouse (https://github.com/GoogleChrome/lighthouse)

image

Usage (OH MY ZSH)

If you're like me and using Oh My Zsh, you can simply grab the zsh file and put into the ~/.oh-my-zsh/custom/plugins/ directory and enable in your .zshrc file.

# get the plugin
➜ wget https://raw.githubusercontent.com/justinribeiro/lighthouse-autocompletion/master/lighthouse.plugin.zsh -O ~/.oh-my-zsh/custom/plugins/lighthouse.plugin.zsh

# edit your .zshrc and add lighthouse to plugin list
➜ vim .zshrc

plugins=(... lighthouse)

# reload completions
➜ autoload -U compinit && compinit

Usage (ZSH)

# get the plugin
➜ git clone git@github.com:justinribeiro/lighthouse-autocompletion.git

# edit your .zshrc and add source call
➜ vim .zshrc

source /path-to-lighthouse-autocomplete/lighthouse.plugin.zsh

➜ autoload -U compinit && compinit

TODO

  1. Add BASH autocompletion script.
  2. Use _arguments in ZSH to allow subcommand completion for --chrome-flags

About

Command line auto-completion for Lighthouse (https://github.com/GoogleChrome/lighthouse)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages