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

  1. Switch to the user account you created during installation, for example:

    $ su - amq-broker
  2. Use the following command to create a command auto-completion script called auto-complete-artemis.sh.

    $ /var/opt/amq-broker/mybroker/bin/artemis auto-complete
  3. To run the auto-complete-artemis.sh, use the following command:

    $ source /var/opt/amq-broker/mybroker/bin/artemis/auto-complete-artemis.sh
  4. To view auto-completion information for the artemis command, type /var/opt/amq-broker/mybroker/artemis and press Tab. A list of commands available for the artemis command is displayed.
  5. To view auto-completion information for an available command, press Tab after the command. For example, type /var/opt/amq-broker/mybroker/artemis check node and 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.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部