Get bash TAB autocomplete function for /sbin /usr/sbin directories on Fedora, Mandriva, RedHat …

Maybe you have found yourself seeing this error:

# ifconfig

bash: ifconfig: command not found

sooo you get ???¡¡¡¿¿¿¿¿¿¿??? WHatttt thee Fuasd!”·sdf??¡¡¡¡¿¿¿

and you have to type every time :s or make alias for all commands you want to resume!!

# /sbin/ifconfig

sooo to make easy and like ubuntu’s bash config just add to ~/.bashrc this line:

PATH=/bin:/usr/bin:/usr/local/bin:/usr/games:/home/<user>/bin:/sbin:/usr/sbin:/opt/kde3/bin #(and so on)

That’s all. You can add directories in which you have scripts and run them easily with the simple name on bash console.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s