mandrakewilson Posted September 15, 2003 Report 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. Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted September 15, 2003 Report 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! Quote Link to comment Share on other sites More sharing options...
mandrakewilson Posted September 15, 2003 Author Report Share Posted September 15, 2003 First post has been edited for correct format. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.