Installation
For go binaries:
go install bennypowers.dev/cem@latest
For NPM projects:
npm install --save-dev @pwrs/cem
Or clone this repository and build from source:
git clone https://github.com/bennypowers/cem.git
cd cem
make
Shell 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/cem
macOS:
cem completion bash > $(brew --prefix)/etc/bash_completion.d/cem
Zsh
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 | source
To load completions for every new session, execute once:
cem completion fish > ~/.config/fish/completions/cem.fish
PowerShell
To load completions in your current shell session:
cem completion powershell | Out-String | Invoke-Expression
To load completions for every new session, add the output of the above command to your PowerShell profile.