News for hackers. Stuff that matters.
Re:Zsh Tricks to Blow Your Mind by caymanjim on Thursday February 18, 2021 @02:44AM (#26177100)
Bash supports completions as well.
Re:Zsh Tricks to Blow Your Mind by p_l on Thursday February 18, 2021 @02:50AM (#26177151)
IIRC, bash doesn't support extended completion editor features of ZSH, which GP alluded to - like generating a table of options with help strings that can be selected by arrow keys and the like.
Re:Zsh Tricks to Blow Your Mind by Symbiote on Thursday February 18, 2021 @09:59AM (#26180527)
A (slightly contrived) example:

  > rsync --e«TAB»
  Completing file
  some-file-with-extra-hyphens
  Completing host
  a-n-example.local
  Completing option
  --cvs-exclude                      -- auto-ignore files the same way CVS does
  --delete-excluded                  -- also delete excluded files on the receiving side
  --exclude                          -- exclude files matching pattern
  --exclude-from                     -- read exclude patterns from specified file
  --executability                    -- preserve executability
  --ignore-existing                  -- ignore files that already exist on receiving side
  --ignore-non-existing  --existing  -- ignore files that do not exist on receiving side
There are various ways to present the completion; I have the simple "keep typing letters" way, but Zsh can also present a table with an entry to highlight.