Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

  1. Create a directory for custom completions (if it doesn't exist):

    mkdir -p ~/.zfunc
    
  2. Generate the completion script and move it:

    cutler completion zsh > ~/.zfunc/_cutler
    
  3. Add the following to your ~/.zshrc:

    fpath=(~/.zfunc $fpath)
    autoload -U compinit && compinit
    
  4. 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