git town completions
git town completions (bash|fish|powershell|zsh) [-h | --help] [--no-descriptions]
The completions command outputs shell scripts that enable auto-completion
for Git Town in Bash, Fish, PowerShell, or Zsh.
When set up, typing git town <tab key> in your terminal will auto-complete
subcommands.
Bash
To load autocompletion for Bash, run this command:
source <(git town completions bash)
To load completions for each session, add the above line to your .bashrc.
Fish
To load autocompletions for Fish, run this command:
git town completions fish | source
To load completions for each session,
add the above line to your ~/.config/fish/config.fish.
PowerShell
To install autocompletions for PowerShell, run this command:
git town completions powershell | Out-String | Invoke-Expression
To load completions for each session, add the above line to your PowerShell profile.
Zsh
To load autocompletions for Zsh, run this command:
source <(git town completions zsh)
To load completions for each session, add the above line to your .zshrc.
To fix the error message command not found: compdef, run
autoload -Uz compinit
Options
-h
--help
Display help for this command.
--no-descriptions
The --no-descriptions flag outputs shorter completions without descriptions of
arguments.