LS_COLORS and OSX - incompatible?

Questions that don't fit in any category below may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.

LS_COLORS and OSX - incompatible?

Postby brettswift » Sun Jan 29, 2012 8:08 pm

Disclaimer - I'm a rookie with linux / unix.

I'm aware there are some incompatibilities between some terminals. I see in my .profile by default it has TERM=${TERM:-cons25} set. I've tried changing that but still nothing seems to work. I'll dump my files out so hopefully someone can help here. In my terminal settings, the terminal is declared as xterm-color.

What I'm trying to do:
- different colors for directories, executables, sym links, plain files.



.bash_profile

if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi



.bashrc

LS_COLORS='di=33:fi=32:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=31:ex=94:*.rpm=90'
export LS_COLORS

alias gotoWeb='cd /volume2/web/'
alias restartApache='/usr/syno/etc/rc.d/S97apache-user.sh restart'
alias ll='ls -la --color'



.profile

#/etc/profile: system-wide .profile file for ash.
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin"
umask 022
#This fixes the backspace when telnetting in.
#if [ "$TERM" != "linux" ]; then
# stty erase
#fi
export PATH
HOME=/root
export HOME
TERM=${TERM:-cons25}
export TERM
PAGER=more
export PAGER
PS1="`hostname`> "
alias dir="ls -al"
brettswift
I'm New!
I'm New!
 
Posts: 2
Joined: Tue Dec 13, 2011 7:20 pm

Re: LS_COLORS and OSX - incompatible?

Postby patters » Tue Jan 31, 2012 12:45 am

There's an issue with Mac OS X 10.6 systems that were upgraded to Lion. Fresh installs of Lion don't have the issue:
http://stackoverflow.com/questions/6804 ... m-256color

For colour directory listings see the bottom of this page:
http://pcloadletter.co.uk/2011/02/06/sy ... unnelling/
For my packages (Java, Serviio, CrashPlan, CrashPlan PRO, CrashPlan PROe, Minecraft, Craftbukkit, OpenRemote, and Bliss), add my repo URL to Package Center: http://packages.pcloadletter.co.uk
patters
Apprentice
Apprentice
 
Posts: 97
Joined: Mon Feb 07, 2011 3:41 am


Return to General Mods

Who is online

Users browsing this forum: No registered users and 1 guest