Skip to main content

Shell Completion

The commands aqua completion <SHELL> outputs shell completion code. By sourcing the output of aqua completion <SHELL> in .bashrc, .zshrc, or ~/.config/fish/completions/aqua.fish, aqua supports the shell completion.

.bashrc

if command -v aqua &> /dev/null; then
eval "$(aqua completion bash)"
fi

.zshrc

if command -v aqua &> /dev/null; then
source <(aqua completion zsh)
fi

https://fishshell.com/docs/current/completions.html#where-to-put-completions

aqua completion fish > ~/.config/fish/completions/aqua.fish

Bash Completion

$ aqua # Enter <Tab> Key
completion exec g generate h help i init install list version which
$ aqua i  # Enter <Tab> Key
i init install

Zsh Completion

$ aqua # Enter <Tab> Key
completion -- Output shell completion script for bash or zsh
exec -- Execute tool
generate g -- Search packages in registries and output the configuration interactively
help h -- Shows a list of commands or help for one command
init -- Create a configuration file if it doesn't exist
install i -- Install tools
list -- List packages in Registries
version -- Show version
which -- Output the absolute file path of the given command
$ aqua i # Enter <Tab> Key
init -- Create a configuration file if it doesn't exist
install i -- Install tools
$ aqua i - # Enter <Tab> Key
--all --help --only-link --test -a -h -l