Skip to content

Instantly share code, notes, and snippets.

@alejandrogr
Created May 11, 2016 06:31
Show Gist options
  • Save alejandrogr/4cda47205b5c38e107823187b4129ece to your computer and use it in GitHub Desktop.
Save alejandrogr/4cda47205b5c38e107823187b4129ece to your computer and use it in GitHub Desktop.
#homes
alias home_repos='cd ~/repos && ll'
alias home_innotech='cd ~/repos/innotech && ll'
# aliases for Tmux
alias tmux='tmux -2'
alias ta='tmux attach -t'
alias tnew='tmux new -s'
alias tls='tmux ls'
alias tkill='tmux kill-session -t'
#general
alias hg='history | grep'
# GIT
alias gcp='git cherry-pick'
alias gst='git status -s'
alias gcl='git clone'
alias gci='git commit'
alias gco='git checkout'
alias gbr='git branch'
alias gdiff='git diff --word-diff'
alias gdc='git diff --cached'
alias gls='git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate'
alias gll='git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat'
alias gld='git log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative'
alias gfl='git log -u'
alias gdl='git "!git ll -1"'
alias gdlc='git diff --cached HEAD^'
alias gf='git "!git ls-files | grep -i"'
alias ggr='git grep -Ii'
alias gours='git "!f() { git co --ours $@ && git add $@; }; f"'
alias gtheirs='git "!f() { git co --theirs $@ && git add $@; }; f"'
alias gr='git reset'
alias gr1='git reset HEAD^'
alias gr2='git reset HEAD^^'
alias grh='git reset --hard'
alias grh1='git reset HEAD^ --hard'
alias grh2='git reset HEAD^^ --hard'
#TMUXINAOR
alias mux='tmuxinator'
#DOCKER
alias dps='docker ps'
alias dpsa='docker ps -a'
alias dli='docker images'
alias drma='docker rm $(docker ps -q -a)'
alias drmia='docker rmi $(docker images -q)'
#DISK USAGE
alias disku="du -h <dir> | grep '[0-9\.]\+G'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment