yum install bash-completion
Then open a new bash shell (new terminal if you are using a GUI or logout then login again if you are using ssh or a terminal). This simple package adds powerful completion to your commands, here is a list of what you may expect from this package:
- Auto-completion for
yumcommands and packages. Try to write
yum inthen press tab it will complete it to
yum installthen try to write a part from a package name and see the magic.
- Completion for command args (arguments that starts with – or –).
- Smart selection of file and folder types with commands like (cd, tar, gunzip, unzip, ….)
- Completion for commands options (just like yum). This works with version control command line tools.
- And a lot more ….
For Ubuntu users this addition is already installed with default installation.