https://github.com/justinribeiro/lighthouse-autocompletion
Command line auto-completion for Lighthouse (https://github.com/GoogleChrome/lighthouse)
https://github.com/justinribeiro/lighthouse-autocompletion
Last synced: 5 months ago
JSON representation
Command line auto-completion for Lighthouse (https://github.com/GoogleChrome/lighthouse)
- Host: GitHub
- URL: https://github.com/justinribeiro/lighthouse-autocompletion
- Owner: justinribeiro
- License: apache-2.0
- Created: 2017-05-23T17:04:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T17:41:07.000Z (about 8 years ago)
- Last Synced: 2025-01-12T05:41:45.173Z (6 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lighthouse-autocompletion
Command line auto-completion for Lighthouse (https://github.com/GoogleChrome/lighthouse)
## Usage (OH MY ZSH)
If you're like me and using [Oh My Zsh](https://github.com/robbyrussell/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 .zshrcplugins=(... lighthouse)
# reload completions
➜ autoload -U compinit && compinit
```## Usage (ZSH)
```
# get the plugin
➜ git clone [email protected]:justinribeiro/lighthouse-autocompletion.git# edit your .zshrc and add source call
➜ vim .zshrcsource /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`