>_ZSH-NGINX
nginx commands, one tab away. Tab completion for the nginx binary plus two service-wrapper aliases for the test / restart cycle.
Install
# Zinit
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-nginx
# Oh My Zsh
git clone https://github.com/MenkeTechnologies/zsh-nginx \
"$HOME/.oh-my-zsh/custom/plugins/zsh-nginx"
# then: plugins+=(zsh-nginx)
# Manual
git clone https://github.com/MenkeTechnologies/zsh-nginx
source zsh-nginx/zsh-nginx.plugin.zsh
Aliases
ngt | sudo nginx -t — test the running config |
ngr | sudo service nginx restart — restart the service |
If sudo is not on PATH the prefix is dropped automatically.
Configuration
NGINX_DIR | default /etc/nginx |
NGINX_VHOST_TEMPLATE | default $ZSH/plugins/nginx/templates/symfony2 |
Examples
nginx <TAB> # tab completion for nginx flags / signals ngt # test running config (sudo nginx -t) ngr # restart service (sudo service nginx restart)
Sibling plugins
Part of the MenkeTechnologies zsh plugin family — the MenkeTechnologiesMeta umbrella:
- zsh-better-npm-completion — cache-aware
npm installcompletion - zsh-cargo-completion — live
cargo add/cargo installcompletion - zsh-cpan-completion — live MetaCPAN
cpan/cpanmcompletion - zsh-dotnet-completion — dotnet CLI completion
- zsh-expand — spacebar expansion (11,683 tests)
- zsh-gem-completion — ruby
gem installremote completion - zsh-git-acp — 159 git aliases + add/commit/push keybindings
- zsh-git-repo-cache — index every git repo on disk
- zsh-learn — MySQL-backed learning collection / quiz
- zsh-more-completions — 33,175-file mega completion corpus
- zsh-pip-description-completion — pip remote completion with descriptions
- zsh-sed-sub — in-place sed substitution on the command line
- zsh-sudo — ESC ESC to prepend sudo
- zsh-xcode-completions — xcodebuild / xcrun / swift completion