CJK font support.
[profile.git] / .profile.d / ls.bashrc
1 alias l='ls'
2 alias ls='/bin/ls $LS_OPTIONS'
3
4 # Check for GNU ls and add colour and ISO8601 dates if available.
5 ls=$(ls --help 2>/dev/null)
6 if echo "$ls" | grep gnu.org >/dev/null; then
7   eval `dircolors 2>/dev/null` 2>/dev/null
8
9   LS_OPTIONS="--color=auto -F -b"
10   if echo $ls | grep -- --time-style >/dev/null; then
11     LS_OPTIONS="$LS_OPTIONS --time-style=long-iso"
12   fi
13   export LS_OPTIONS
14 elif [ "$SYSTEM" = "Darwin" ]; then
15   export LS_OPTIONS="-G -F -b"
16 fi
17 unset ls