$COMP_TYPE  –  Completion Type

$COMP_TYPE contains the completion type.

  • TAB: normal completion
  • ?: listing completions after successive tabs
  • !: listing alternatives on partial word completion
  • @: listing completions if the word is not unmodified
  • %: menu completion

This variable is only available in functions and external commands invoked by the programmable completion.

BashSupport Pro is a Bash IDE with support for $COMP_TYPEtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal