Installation
For go binaries:
go install bennypowers.dev/cem@latestFor NPM projects:
npm install --save-dev @pwrs/cemOr clone this repository and build from source:
git clone https://github.com/bennypowers/cem.git
cd cem
makeShell Completion
cem supports shell completion for Bash, Zsh, Fish, and PowerShell. The completion scripts provide tab completion for commands, flags, and file paths.
Bash
To load completions in your current shell session:
source <(cem completion bash)To load completions for every new session, execute once:
Linux:
cem completion bash > /etc/bash_completion.d/cemmacOS:
cem completion bash > $(brew --prefix)/etc/bash_completion.d/cemZsh
To load completions in your current shell session:
source <(cem completion zsh)To load completions for every new session, execute once:
cem completion zsh > "${fpath[1]}/_cem"You will need to start a new shell for this setup to take effect.
Fish
To load completions in your current shell session:
cem completion fish | sourceTo load completions for every new session, execute once:
cem completion fish > ~/.config/fish/completions/cem.fishPowerShell
To load completions in your current shell session:
cem completion powershell | Out-String | Invoke-ExpressionTo load completions for every new session, add the output of the above command to your PowerShell profile.