Skip to content

Shell Completion

linkup completion prints a shell-completion script to standard output, auto-detecting your shell from $SHELL. Pipe it to the right place for your shell and tab-completion will work for Linkup invocations.

To generate completions for a different shell (for example when packaging), pass --shell <bash|zsh|fish|elvish|powershell> explicitly.

bash, zsh, fish, elvish, powershell.

Terminal window
linkup completion > /usr/local/etc/bash_completion.d/linkup

Or, to load it inline in a session:

Terminal window
source <(linkup completion)
Terminal window
linkup completion > "${fpath[1]}/_linkup"

Reload your shell or run compinit for the completion to take effect.

To load it inline in a session:

Terminal window
source <(linkup completion)
Terminal window
linkup completion > ~/.config/fish/completions/linkup.fish

To load it inline in a session:

Terminal window
linkup completion | source