Permalink
Browse files

.

  • Loading branch information...
1 parent 97294bc commit 2f699e6304edc571ddb1a964e8cb9bbef5b2afbc @dabaopku committed Feb 20, 2013
Showing with 7 additions and 8 deletions.
  1. +0 −2 README.md
  2. +7 −6 bashrc
View
@@ -1,2 +0,0 @@
-config
-======
View
@@ -1,18 +1,17 @@
# platform detect
platform='unknown'
unamestr=`uname`
-if [[ "$unamestr" == 'Linux' ]]; then
+if [[ "$unamestr" == "Linux" ]]; then
platform='linux'
-elif [[ "$unamestr" == 'Darwin' ]]; then
+elif [[ "$unamestr" == "Darwin" ]]; then
platform='mac'
fi
# alias
if [[ "$platform" == "linux" ]]; then
alias ls='ls --color'
fi
-alias ls='ls -h'
-alias ll='ls -l'
+alias ll='ls -lh'
alias ll.='ll -A'
alias clc="clear"
alias gitlog='git log --reverse --all --pretty=format:"%h %ci | %d %s" --max-count=10 --date=short'
@@ -27,8 +26,10 @@ export PS1="$BLUE\H:$RED\W>$NO_COLOR "
export PS2='continue-> '
export PS4='$0.$LINENO+ '
-export CLICOLOR=1
-export LSCOLORS=Exfxcxdxcxegedabagacad
+if [[ "$platform" == "mac" ]]; then
+ export CLICOLOR=1
+ export LSCOLORS=Exfxcxdxcxegedabagacad
+fi
# clear varables
unset platform

0 comments on commit 2f699e6

Please sign in to comment.