Created
May 2, 2013 20:17
-
-
Save yyolk/5505063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias chrome="open -a 'Google Chrome'" | |
alias nose="node server*" | |
alias noce="node server & chrome 'http://localhost:3000'" | |
alias ni="npm install" | |
alias cit="python $HOME/code/python/cit/cit.py" | |
alias byword='open -a Byword' | |
alias l="ls -G" | |
alias ls="ls -G" | |
alias mkpdir="mkdir `date +%Y%m%d-%H%M`" | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
#alias j=autojump | |
D=$'\e[37;40m' | |
PINK=$'\e[35;40m' | |
GREEN=$'\e[32;40m' | |
ORANGE=$'\e[33;40m' | |
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
export PS1='\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${D}\w\n$(parse_git_branch)$ ' | |
#export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH" | |
export PATH=$HOME/Applications/bin:/usr/local/bin:/usr/local/sbin:$HOME/bin:/Volumes/underfabric/.rbenv/shims:/usr/local/share/python:/usr/local/share/npm/bin:$PATH | |
export ANDROID_SDK_ROOT=/usr/local/opt/android-sdk | |
source $HOME/.githubcreds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment