Wednesday, March 26, 2008

Set Directory colour for Putty (xterm)

Change color for xterm
/etc/ DIR_COLORS.xterm

# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 00;36 # directory

Sample sets the Directorycolor to cyan

Place the following file with a dot in your userdirectory to have usercustomized colors .DIR_COLORS.xterm

No comments: