Only use -v and --color on Linux systems.

This commit is contained in:
Andrew Tomaka 2012-07-19 15:57:06 -04:00
parent 9e8d716be2
commit 29cd701772

View file

@ -1,7 +1,13 @@
# Common parameters
if [ "$OSTYPE" == "linux-gnu" ]; then
alias ls='ls -v --color=auto'
alias ll='ls -val'
alias ll='ls -lav'
alias grep='grep --color'
else
alias ls='ls'
alias ll='ls -la'
alias grep='grep'
fi
# Case insensitive matching
shopt -s nocaseglob