LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do i chage the color of a file or a directory in a bash shell (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-chage-the-color-of-a-file-or-a-directory-in-a-bash-shell-239517/)

Paxmaster 10-06-2004 03:11 PM

how do i chage the color of a file or a directory in a bash shell
 
hi there

How could i change the colors of a file and a directory, for instance in a bash prompt, i have kde as a desktop with fc2 linux i know there a way because my director colors is black and the files is white and the .jpg is pink, so is there a way to change the color, I don't think the PS1 is the answer or maybe

jxi 10-06-2004 03:37 PM

do you have a file in you home directory called something like .dir_colors ?

If not copy it from /etc/DIR_COLORS. Edit it with kedit, kate, whatever. The instructions for changing colors are within.

Then (assuming your shell is bash, otherwise see man dircolors):

eval `dircolors -b ~/.dir_colors`

HTH

John

Paxmaster 10-06-2004 08:20 PM

thanks

drakethegreat 10-17-2004 11:21 PM

Thanks


All times are GMT -5. The time now is 06:10 PM.