mandrakewilson Posted September 15, 2003 Share Posted September 15, 2003 How do I add colors to directories, files, etc in the bash console? Easy. Add the following code to the .bashrc file located in your home directory: alias ls='ls --color' alias sl='ls --color' An example of my .bashrc file with the above code added: /usr/games/fortune homer alias ls='ls --color' alias sl='ls --color' export PS1="[e[36;1m]u[e[32;1m]w >[e[0m]" My example loads a Homer fortune, plus a nice, simple prompt with all the different colors for directories, images, links, etc. Link to comment Share on other sites More sharing options...
Cannonfodder Posted September 15, 2003 Share Posted September 15, 2003 Not to state the obvious but did you want to add t his to the FAQ? If so, take a peek at a faq and try to follow the format. thanks! Link to comment Share on other sites More sharing options...
mandrakewilson Posted September 15, 2003 Author Share Posted September 15, 2003 First post has been edited for correct format. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now