Manage your shell environment with Envirou
This project is maintained by sverrirab
Envirou ships with tab completion for bash, zsh, fish and PowerShell,
generated by the built-in envirou completion command.
Note: envirou install does not set up completion; the steps below are
manual. Generated scripts register completion for both the envirou binary
and the ev wrapper on shells where that wrapper is supported.
For Bash, Zsh, or PowerShell, bootstrap and completion can instead be loaded
together. The generated completion script registers both envirou and ev:
source <(envirou bootstrap zsh --completion)
For Zsh, run this after compinit (and after Oh My Zsh, when used).
Run envirou completion SHELL --help for shell-specific details.
Completion includes commands and flags as well as profile names for
envirou set. Profiles already present on the command line are not offered
again, and active profiles are labelled in shells that display descriptions.
Requires the bash-completion package to be installed and enabled.
Load for every session by adding to ~/.bashrc (or ~/.bash_profile on macOS):
source <(envirou completion bash)
Or install system-wide:
# Linux
envirou completion bash | sudo tee /etc/bash_completion.d/envirou > /dev/null
# macOS with Homebrew bash-completion
envirou completion bash > $(brew --prefix)/etc/bash_completion.d/envirou
Add to ~/.zshrc:
source <(envirou completion zsh)
Or install into a directory on your $fpath:
envirou completion zsh > "${fpath[1]}/_envirou"
If completion has never been enabled in your zsh, also add
autoload -U compinit; compinit to ~/.zshrc.
envirou completion fish > ~/.config/fish/completions/envirou.fish
Add to your PowerShell profile (path shown by echo $PROFILE):
envirou completion powershell | Out-String | Invoke-Expression
ev wrapperThe generated Bash, Zsh, and PowerShell scripts register completion for both
envirou and the ev shell wrapper. Load the bootstrap before using ev, or
use bootstrap SHELL --completion to load both pieces together.