Shell Integrations
Completions
cutler supports built-in shell completion for your ease of access for a variety of system shells, including Bash, Zsh, Powershell etc. Below you will find setup instructions to enable completions automatically for every new shell session.
NOTE: If you have installed cutler using Homebrew, the shell completion will automatically be installed. Just restart your shell after initial installation.
Bash
Run the command below:
eval "$(cutler completion bash)" > .bashrc # or .bash_profile
Then restart your shell or run:
source ~/.bashrc
Zsh
-
Create a directory for custom completions (if it doesn't exist):
mkdir -p ~/.zfunc -
Generate the completion script and move it:
cutler completion zsh > ~/.zfunc/_cutler -
Add the following to your
~/.zshrc:fpath=(~/.zfunc $fpath) autoload -U compinit && compinit -
Restart your shell or run:
source ~/.zshrc
Fish
Add the completion script to your fish configuration directory:
cutler completion fish > ~/.config/fish/completions/cutler.fish
Restart your shell or open a new fish session.
Elvish
Add the following to your Elvish configuration file (usually ~/.elvish/rc.elv):
eval (cutler completion elvish)
Restart your shell or source your config file.
PowerShell
Add the following to your PowerShell profile (you can find your profile path with $PROFILE):
cutler completion powershell | Out-String | Invoke-Expression
Restart your shell or run:
. $PROFILE