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?
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?
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!