1

When you press tab 2 times you get suggestions for possible commands. For example lsTabTab will print all available commands.

Is it possible to add such suggestions to an alias that is user created? If so, how?

Radu Rădeanu
  • 169,590
Bloodcount
  • 231
  • 1
  • 2
  • 9

1 Answers1

1

I have a lot of aliases defined in my ~/.bash_aliases file and when I type first letter (or two, three...) followed by TabTab, all the aliases starting with that letter are including in the suggestions.

Also, this works:

radu@Radu: ~ $ alias blabla='cd'
radu@Radu: ~ $ blaTabTab some_dir
radu@Radu: ~/some_dir $

So, you don't have nothing to do, just try it!

Radu Rădeanu
  • 169,590