Updated profile to detect OS
This commit is contained in:
parent
3a820617c4
commit
68bd50b522
1 changed files with 6 additions and 2 deletions
8
profile
8
profile
|
@ -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`
|
||||||
alias ls="ls -G"
|
if [[ "$unamestr" == 'Linux' ]]; then
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
elif [[ "$unamestr" == 'Darwin' ]]; then
|
||||||
|
alias ls="ls -G"
|
||||||
|
fi
|
||||||
|
|
||||||
# default editor
|
# default editor
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
Loading…
Reference in a new issue