Skip to content

Instantly share code, notes, and snippets.

@giovaneliberato
Last active August 29, 2015 14:07
Show Gist options
  • Save giovaneliberato/4933004e3ad1031d1706 to your computer and use it in GitHub Desktop.
Save giovaneliberato/4933004e3ad1031d1706 to your computer and use it in GitHub Desktop.
aliases.sh
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
alias gts='git status'
alias gcm='git commit -m'
alias gpl='git pull'
alias gps='git pull'
alias gpr='git pull --rebase'
alias gadd='git add'
alias gcp='git cherry-pick'
alias runserver='./gradlew jettyRun'
alias runtests='./gradlew clean build'
fortune | cowsay
function gitbranch(){
if git branch > /dev/null 2>&1; then
echo -e "$(git branch 2> /dev/null | grep "^*" | sed "s/^* //")"
fi
}
PS1='\[\033[01;30m\]$(gitbranch)\[\033[1;37m\][\[\033[01;34m\]\w\[\033[1;37m\]]\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment