LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2005, 04:02 AM   #1
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
Set color to RXVT


Dear all,
I'm using RXVT-Unicode for my xterm, and I set this line "eval `dircolor -b` in my "~/.bashrc", show I can display the directory in color on RXVT, but it doesn't have the color for the file type, such as allmost tar.gz file color is red and executable file is green. How can I set it.
Please give me some suggestions!
Thanks.


Regards.
 
Old 07-01-2005, 09:03 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
add

alias ls='ls -F --color'

to your .bashrc file, and re-source it ($ source .bashrc)
 
Old 07-01-2005, 10:00 PM   #3
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by synaptical
add

alias ls='ls -F --color'

to your .bashrc file, and re-source it ($ source .bashrc)
Dear synaptical,
I already add the "alias ls='ls -F --color' into .bashrc and re-source it, but the file type can't be show in color? What's my problem, is that releated to the RXVT setting?

On Redhat system, it set the LS_COLORS
Code:
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
but Slackware didn't have this setting, and I already export the COLORS=/etc/DIR_COLORS.
and how to set the color for RXVT??

Thanks.

Last edited by bluesheet; 07-01-2005 at 10:31 PM.
 
Old 07-02-2005, 12:10 PM   #4
bluesheet
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
PUSH...
pls, give me some suggestion!
Thanks.
 
Old 09-01-2007, 05:19 PM   #5
Draengen
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
SuSE solution

I had the same problem running urxvt on opensuse 10.2. It seems that the terminal program urxvt is missing in the file
/etc/DIR_COLORS.

Just put a row "TERM urxvt" in this file, and the system script /etc/bash.bashrc will give you the correct environment variables (LS_COLORS and LS_OPTIONS).

Regards
Draengen
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK/GDK 1.2 GdkPixmap: Set a pixel with a color TTL_2 Programming 2 01-14-2013 01:48 AM
[bash] changing the color set MD3 Linux - Software 2 04-27-2005 12:38 PM
How To Set Default Font Color For Thunderbird Composer mac57 Linux - Software 2 03-16-2005 08:57 AM
Red Hat 8.0 set screen resolution, color depth and update frequency TroelsSmit Linux - Newbie 2 10-11-2004 04:52 AM
Cant set color or promt in bash outsider Linux - General 2 10-15-2001 12:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 PM.

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
Open Source Consulting | Domain Registration