Manage your shell environment with Envirou
This project is maintained by sverrirab
The easiest way to install:
envirou install
This auto-detects your shell (bash or zsh) and adds the bootstrap line to your profile.
Use envirou install --dry-run to preview what will be added and where.
To prepend active profiles while preserving your existing Bash or Zsh prompt:
envirou install --prompt
If you prefer to edit your profile yourself, add this to .bashrc (or .zshrc for zsh):
eval "$(envirou bootstrap bash)"
For zsh:
eval "$(envirou bootstrap zsh)"
Then restart your shell (or run the command directly in your current shell).
For manual opt-in prompt integration, add --prompt to the bootstrap command:
eval "$(envirou bootstrap bash --prompt)"
# or, in zsh after Oh My Zsh has loaded:
eval "$(envirou bootstrap zsh --prompt)"
Prompt and completion integration can be enabled together:
source <(envirou bootstrap zsh --prompt --completion)
To use the envirou zsh theme (shows active profiles in your prompt):
cp oh-my-zsh/envirou.zsh-theme ~/.oh-my-zsh/custom/themes/
.zshrc:
ZSH_THEME="envirou"
Note: the ev shell function must also be installed (see above).
envirou install --uninstall
Or manually:
eval line from your .bashrc / .zshrcrm $(which envirou)unset ev (or unset -f ev for zsh)