Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@toidiu
Last active April 18, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toidiu/589aa49c7ade94f051fa2a6a0578fb52 to your computer and use it in GitHub Desktop.
Save toidiu/589aa49c7ade94f051fa2a6a0578fb52 to your computer and use it in GitHub Desktop.
### Aliases
### General
alias l="ls -al"
alias cc="clear"
alias xx="exit"
alias ..="cd ..;pwd;ls -a"
alias pp="pwd"
alias brc="vi ~/.bashrc"
alias sc="source ~/ENV_django/bin/activate"
alias pyserve="ipconfig getifaddr en0; python -m SimpleHTTPServer 8000"
### GIT Aliases
alias gs="git status"
alias gc="git commit"
alias ga="git add"
alias gl="git log --color"
alias gitlg="git log -p --color"
alias gitl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
alias gb="git branch"
alias gd="git diff --color"
alias gp="git pull; git fetch --all --prune"
alias gpp="git push; git push origin --tags"
alias gpr="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment