Skip to content

Instantly share code, notes, and snippets.

@dlsso
Last active July 15, 2016 23:15
Show Gist options
  • Save dlsso/f8155de8f8eba2037fb6 to your computer and use it in GitHub Desktop.
Save dlsso/f8155de8f8eba2037fb6 to your computer and use it in GitHub Desktop.
Bash Profile
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
test -f ~/.git-completion.bash && . $_
alias ..='cd ..'
alias ...='cd ../..'
alias ip="ipconfig getifaddr en0"
alias exip="curl http://ipecho.net/plain; echo"
alias gp='git push'
alias gs='git status'
md() {
mkdir $1
cd $1
}
gc() {
git add -A
git commit -m "$1"
}
gpn() {
local branch_name=`git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3`
git push -u origin $branch_name
}
prune() {
git fetch -p
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment