3.2. Configuring auto-completion in a Bash or Zsh shell
You can configure auto-completion of CLI commands and command parameters in a Bash or Zsh shell.
Procedure
Switch to the user account you created during installation, for example:
$ su - amq-brokerUse the following command to create a command auto-completion script called
auto-complete-artemis.sh.$ /var/opt/amq-broker/mybroker/bin/artemis auto-completeTo run the
auto-complete-artemis.sh, use the following command:$ source /var/opt/amq-broker/mybroker/bin/artemis/auto-complete-artemis.sh-
To view auto-completion information for the
artemiscommand, type/var/opt/amq-broker/mybroker/artemisand press Tab. A list of commands available for theartemiscommand is displayed. -
To view auto-completion information for an available command, press Tab after the command. For example, type
/var/opt/amq-broker/mybroker/artemis check nodeand press Tab. If no further auto-completion information is displayed, type--, for example,check node --, and press Tab to display the parameters available for the command.