LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2006, 03:52 AM   #1
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
terminal colors... howto change?


hey all

i'm working on an ubuntu 5.10 and want to change the color of the names of all executable files. The one with the +x permission. Now they are green, but i want them pink or something else... My terminal is 50% transaparent and my wallpaper sucks with the green text... thx!
 
Old 05-12-2006, 04:01 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
there should be a file /etc/DIR_COLORS that contains them, but also look for ~/.dir_colors as this will be called first.

This file is consulted when running
Code:
ls --color
which is probably aliased in your .bashrc to be
Code:
ls
 
Old 05-12-2006, 04:13 AM   #3
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
thx for the quick reply.

found the alias for ls --colors, but no file /root/./etc/DIR_COLORS or ~/.dir_colors. Sure this in on a ubuntu/debian system?
 
Old 05-12-2006, 04:25 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
couldn't find if it is in Debian or not but the manpage:

http://www.fifi.org/cgi-bin/man2html...ir_colors.5.gz

try creating ~/.dir_colors?

is there a line in your .bashrc/profile or global /etc/profile that sets the LS colors then?

Code:
LS_COLORS = foo
export LS_COLORS
Or something like that?
 
Old 05-12-2006, 04:52 AM   #5
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
ethics, thx again...

i found another way to change it...

first, i did a 'set | less'

there, i found:
Quote:
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31 ;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=0 1;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35 :*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.t iff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=0 1;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
copied the whole line to the bottom of my .bashrc, changed the values of ex, which probally means execute. Saved the shizzle, logout on my console, login and the color has been changed!
 
Old 05-12-2006, 04:59 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
That was probably set in /etc/profile or some global config, copying it to your .bashrc means that is read first, if you wanted it for all users you could locate where it was originally set and change it there.

Well done on fixing it though
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal colors Athos Debian 3 09-11-2007 05:54 PM
Terminal Colors chakkerz Linux - General 2 11-22-2004 09:01 PM
Aterm(howto change colors of the text..?) k0ljat Linux - Software 5 04-11-2004 12:15 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 03:59 PM
gnome-terminal colors as su teacup Slackware 2 05-10-2003 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration