Skip to content

Instantly share code, notes, and snippets.

@davidfrey
Last active March 3, 2017 15:59
Show Gist options
  • Save davidfrey/9496735 to your computer and use it in GitHub Desktop.
Save davidfrey/9496735 to your computer and use it in GitHub Desktop.
Clean up your local git branches
# Faces of Dave Customization
export CLICOLOR=1
export LSCOLORS=ExFxCxDxCxegedabagacGx
alias ls="gls -lh --color -h --group-directories-first"
alias externalip="dig +short myip.opendns.com @resolver1.opendns.com"
alias please=sudo
PROMPT="$emoji[rocket] $PROMPT"
# Add this to your bash or zshell dot files to keep your local git branches sane
mrclean() {
git branch --merged master | grep -v "\*\|master" | xargs -n 1 git branch -d
}
# Default Editor
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment