Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357439

add bash autocompletion for jcmd

XMLWordPrintable

      Many Linux utilities support bash autocompletion [0] that greatly improves User Experience. Autocompletion reduces typing, prevents typing mistakes, and even works as a "documentation". Look at 'git' autocompletion for example [1]. It's very extensive.

      As part of this ticket, it would be nice to write a bash script that User could source from, and gain autocompletion for 'jcmd' tool.
      I've made a prototype. Find the script in attachment.

      It's not a goal to install bash script on the system during JDK installation.

      [0] - bash Programmable Completion Builtins documentation - https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html
      [1] - git autocompletion https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

            Unassigned Unassigned
            ibereziuk Ivan Bereziuk
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: