-
-
Save dlsso/f8155de8f8eba2037fb6 to your computer and use it in GitHub Desktop.
Bash Profile
This file contains hidden or 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
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