I'm using GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu). How do I see a preview of what happens if I press tab to autocomplete, similar to a fish shell. (Sorry, I'm new, so I may not be using the right terminology)

  • You mean what you see if you hit tab twice and there are more than one options?
    – terdon
    May 13, 2021 at 13:30
  • No, more of like a definite function. So for instance mkdir, when i type mkd, it shows "ir" as greyed text May 13, 2021 at 14:37
  • Right, OK. So exactly what fish does. I was thinking maybe the list of completions offered on double-tab by bash would be enough. I don't think you can do what you want in bash. Or, rather, I don't think you can do it without a pretty complicated program written specifically for that. There's no bash option for it as far as I know. But let's see if anyone can come up with something clever. Could you please add a screenshot from fish showing what you mean for those not familiar with it?
    – terdon
    May 13, 2021 at 14:55
  • 1
    Somehow relating: unix.stackexchange.com/q/109366/315749
    – fra-san
    May 13, 2021 at 15:12
  • I see haha, that's really a pity. The intended outcome would be something like what @fra-san posted above. Thanks for all your help nonetheless! May 15, 2021 at 7:26

1 Answer 1


The link from @fra-san seems to be an answer. It uses ble.sh ―Bash Line Editor― for Syntax highlighting, Enhanced completion and more.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .