Last active
August 29, 2015 14:19
-
-
Save lesniakania/4480a855bc6d627a0d20 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
[[ -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