Updated profile to detect OS
This commit is contained in:
parent
3a820617c4
commit
68bd50b522
1 changed files with 6 additions and 2 deletions
6
profile
6
profile
|
@ -29,8 +29,12 @@ set_prompt() {
|
|||
set_prompt
|
||||
|
||||
# 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"
|
||||
fi
|
||||
|
||||
# default editor
|
||||
export EDITOR=vim
|
||||
|
|
Loading…
Reference in a new issue