Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabaopku committed Feb 20, 2013
1 parent 97294bc commit 2f699e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

13 changes: 7 additions & 6 deletions bashrc
@@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 2f699e6

Please sign in to comment.