Redhat flavor Tweak Auto complete service command
Posted by hsukumar on 23/03/2009
I am a lazy bugger!!!
Type:
complete -W “$(ls /etc/init.d/)” service
* complete : the command complete sets up tab completion
* -W : this option creates a word list for completion
* “$(ls /etc/init.d/)” : out word list is made up of the output of the command ls /etc/init.d/
* service : this then sets up the configured completion for the command service
So next time when you type service command it should automatically auto complete,
hope this helps the Lazy like me