Skip to main content

Shell Completion

aqua >= v1.11.0 #856 #859

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

.bashrc

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

.zshrc

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

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