Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

comp

Install shell completions for any CLI that supports a <name> completion <shell> subcommand (the convention used by urfave/cli and others).

Just run:

comp <cli-name>

comp detects your shell automatically and writes the completion script to the right place. Works on Linux, macOS and Windows with bash, zsh, fish and PowerShell. Pass a shell explicitly if you want to override detection:

comp <cli-name> [bash|zsh|fish|powershell]

Install

go install github.com/piechutowski/comp@latest

Or, if you use gobin:

gobin addr github.com/piechutowski/comp

If ~/go/bin is not on your PATH, add it with fish_add_path ~/go/bin.

About

Tiny CLI that auto-installs shell completions for any tool with a <name> completion <shell> subcommand

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages