Skip to content

Instantly share code, notes, and snippets.

@swarut
Last active December 11, 2015 01:19
Show Gist options
  • Save swarut/4522649 to your computer and use it in GitHub Desktop.
Save swarut/4522649 to your computer and use it in GitHub Desktop.
.bash_profile #bash #profile
[[ -s "/Users/warut/.rvm/scripts/rvm" ]] && source "/Users/warut/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
PATH=/usr/local/sbin:/usr/local/bin:$PATH
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
YELLOW="\[\033[0;33m\]"
LIGHT_BLUE="\[\033[0;34m\]"
NO_COLOR="\[\033[0m\]"
IMGS=(
"
o + o o + + + \n\
+ o + o o + o +\n\
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_,------, o + \n\
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-| /\_/\ \n\
_-_-_-_-_-_-_-_-_-_-_-_-_-_-~|__( ^ .^) + o +\n\
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-\"\" \"\" \n\
+ o + + o o + + o \n\
+ o + + o + + \n\
")
git_status() {
if current_git_status=$(git status | grep 'added to commit' 2> /dev/null); then
echo -e "\033[0;31m‡∆"
fi
}
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
status_icon=$(git_status)
echo "["${ref#refs/heads/}"]$status_icon"
}
PS1="$LIGHT_BLUE$IMGS$NO_COLOR\n\$(rvm-prompt v p g)$GREEN\w$YELLOW\$(parse_git_branch)$NO_COLOR\$\n$GREEN(°з°) what ya want, pon? $NO_COLOR\$> "
export PATH=/usr/local/mysql/bin:$PATH
if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
#source "`brew --prefix`/etc/grc.bashrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment