Created
November 11, 2017 21:03
-
-
Save ryancoughlin/6c618c7429bc1bc7f2c14932ccc538a9 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
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
alias derived='rm -rf ~/Library/Developer/Xcode/DerivedData/*' | |
alias gco='git checkout' | |
alias gpom="git pull origin master" | |
alias grom="git rebase origin/master" | |
alias gir="git rebase -i origin/master" | |
alias grc="git rebase --continue" | |
alias gra="git rebase --abort" | |
alias gf='git fetch' | |
alias gp='git push' | |
alias gd='git diff' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias del='git branch -d' | |
alias dmb="git co master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment