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

12
.bashrc
View file

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