Created
October 1, 2012 21:23
-
-
Save swarut/3814513 to your computer and use it in GitHub Desktop.
Bash : My bash profile as of oct-2012 #bash #bash-profile
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
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
export CLICOLOR=1 | |
export LSCOLORS=cxfxcxdxbxegedabagacad | |
export GREP_OPTIONS='--color=auto' | |
source "`brew --prefix`/etc/grc.bashrc" | |
[[ -s "/Users/swarut/.rvm/scripts/rvm" ]] && source "/Users/swarut/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
PATH=/usr/local/bin:/usr/local/mysql/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)\n$GREEN( ・ω・)ノ$YELLOW order?$NO_COLOR\$ " | |
# export PATH=/usr/local/mysql/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment