Prev: ffmpeg AV sync batch job?
Next: rsync on samba mounts
From: Jerome Robertson on 4 Apr 2010 06:28 Does this alias (ls --color=tty) generate color control sequences?
From: J G Miller on 4 Apr 2010 09:16 On Sun, 04 Apr 2010 06:28:40 -0400, Jerome Robertson wrote: > Does this alias (ls --color=tty) generate color control sequences? Other than for default types, you need to generate an LS_COLORS string with all of the file types and associated colors. Create a file for the user or eg /etc/DIR_COLORS for all users, and put in entries for file type and associated color, eg ..asf 1;32;44 ..avi 1;32;44 ..div 1;32;44 ..mkv 1;32;44 ..mov 1;32;44 ..mp4 1;32;44 ..mpg 1;32;44 ..wmv 1;32;44 Then you need to run the dircolors program on the file within a sourced script eg for bash in .bashrc with an entry eval "`dircolors --sh /etc/DIR_COLORS`" Then when you use ls --color=tty you will see the specified color for that file type.
|
Pages: 1 Prev: ffmpeg AV sync batch job? Next: rsync on samba mounts |