CLITools
Aliases and completion
Short names for commands you use often, shell completion (co alias, co completion)
Aliases (co alias)
co alias set bugs "issue list --label bug"
co bugs # → co issue list --label bug
co bugs -p CORE # arguments you add are passed through
co alias list
co alias delete bugsAliases are saved in the settings file. Names of main commands such as issue, cr and config cannot be used as aliases. An alias named after a command that is not blocked (chat, status and so on) hides the real command, so avoid that. The other subcommands (edit, rename, import) are in co alias --help.
Completion (co completion)
| Shell | Setup |
|---|---|
| bash | source <(co completion bash). To keep it, co completion bash > /etc/bash_completion.d/co |
| zsh | co completion zsh > "${fpath[1]}/_co" (compinit must be enabled) |
| fish | co completion fish > ~/.config/fish/completions/co.fish |
| PowerShell | Run the output of co completion powershell with Invoke-Expression. Put it in $PROFILE to apply it to new windows |