controlling terminal colors
In a terminal window there are various colors for different file types. No matter which scheme I select, there is always one color that doesn't sufficiently contrast with the background color when I do an ls.
I would either like to specify which color each file type uses or simply turn off the use of colors to represent file types. Can I simply make all filenames show up as black on a white background? |
Depending on the distro you use, this may or may not be applicable. On my system there is a Bash startup file called /etc/profile.d/50-dircolors.sh. The contents of this script, with comments added for this post, are
Code:
#Color codes are output only if standard output is connected to a terminal. Other options are --color=none or --color=always. Code:
dircolors -p /etc/dircolors For the simple black on white scheme, put this in your .bashrc Code:
alias ls='ls --color=none' |
Hey, thanks for the valuable explanation. I can't believe everyone doesn't have the same problem I am having. I have seen this both with debian and now with ubuntu (which, of course, is a derivative of debian). It seems like debian needs to be little smarter about matching dircolors with backgrounds.
I'll play with setting up the right colors and backgrounds. Thanks. |
All times are GMT -5. The time now is 02:12 AM. |