Skip to content

Instantly share code, notes, and snippets.

@lesniakania
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesniakania/4480a855bc6d627a0d20 to your computer and use it in GitHub Desktop.
Save lesniakania/4480a855bc6d627a0d20 to your computer and use it in GitHub Desktop.
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
alias gff="git-flow feature"
alias be="bundle exec"
cd ~/projects
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/'
}
last_result(){
if [ $? = 0 ];then
echo ":)";
else
echo ":(";
fi
}
if [ "$PS1" ]; then
PS1='\[\e[00;33m\]\u \[\e[00;33m\]\h:\w \[\e[01;31m\]$(last_result)\[\033[01;34m\]$(parse_git_branch) \[\e[00;33m\]\$\[\e[00m\] '
fi
function colorize {
highlight $1 -O rtf --font="Ubuntu Mono" --font-size=28 | pbcopy
}
export PATH=/usr/local/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment