Updated profile to detect OS

This commit is contained in:
Nicole Tietz-Sokolskaya 2012-12-24 14:45:08 -05:00
parent 3a820617c4
commit 68bd50b522
1 changed files with 6 additions and 2 deletions

View File

@ -29,8 +29,12 @@ set_prompt() {
set_prompt set_prompt
# makes ls print pretty # makes ls print pretty
#alias ls="ls --color=auto" unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
alias ls="ls --color=auto"
elif [[ "$unamestr" == 'Darwin' ]]; then
alias ls="ls -G" alias ls="ls -G"
fi
# default editor # default editor
export EDITOR=vim export EDITOR=vim