~/.bashrc ; Editing.
How do I change of color current directory, input text, and such in ~/.bashrc ? Thanks.
|
this link should just about cover it.
http://news.softpedia.com/news/How-t...pt-40033.shtml |
How do I change the colors of output text? So directorys are blue, executables are green, and such?
This is my current .bashrc file: Code:
# Defines colors edit: And I want to create a command that will display distro, kernel and such. An alias would work. Alot like this: http://news.softpedia.com/images/rev...img2-large.png |
Quote:
|
Quote:
|
to handle the LS_COLORS, it is easier to add to the end of your bashrc the line
alias ls="ls --color=auto" |
Thanks, but is there anyway that I could make it so a special file is a cetain color though? Like pictures? Or text files?
|
Ah, now I understand the question. Unfortunately I don't know the answer. Sorry.
|
The command 'ls' uses the environment variable $LS_COLORS to determine display of colors.
on my system, it looks like this: Quote:
The default colors used by dircolors are compiled in, and can be viewed by using the command dircolors --print-database The output from this command can be re-directed to a file, the output can be modified and used as the control file for dircolors. Here's the step by step: Quote:
Quote:
By the way, the documentation for dircolors can be found by using 'info dircolors'. |
All times are GMT -5. The time now is 09:23 AM. |