Skip to content

Commit

Permalink
add bash_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
apipkin committed Aug 9, 2013
1 parent 6783922 commit 1999c91
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions _bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export PATH="/usr/local/mysql/bin:~/Project/flex_sdk_4.6/bin:$PATH"

alias yuiupdate='sudo npm -g i yuidocjs selleck shifter grover yuitest yeti'
alias ys='yogi serve --watch --istanbul'

export GHN_API=c776bdb21aeb0114a3ce
export GHN_SECRET=ff2cb1b47918367264ebbc6ed8bbaab27ac3

function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}

function proml {
local BLACK="\[\033[0;30m\]"
local DARK_GRAY="\[\033[1;30m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local DARK_YELLOW="\[\033[0;33m\]"
local YELLOW="\[\033[1;33m\]"
local BLUE="\[\033[0;34m\]"
local LIGHT_BLUE="\[\033[1;34m\]"
local CYAN="\[\033[0;36m\]"
local LIGHT_CYAN="\[\033[1;36m\]"
local WHITE="\[\033[1;37m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac

PS1="$DARK_GRAY${TITLEBAR}\
[$DARK_YELLOW\$(date +%H:%M)$DARK_GRAY]\
[$LIGHT_RED\u$DARK_GRAY:$CYAN\w$GREEN\$(parse_git_branch)$DARK_GRAY]\
$WHITE\$$LIGHT_GRAY "
PS2='> '
PS4='+ '
}
proml

0 comments on commit 1999c91

Please sign in to comment.