Skip to content

Instantly share code, notes, and snippets.

@ghostsquad
Created September 4, 2019 19:33
Show Gist options
  • Save ghostsquad/b8b020c72338daca90b3bbdf6e0b90e3 to your computer and use it in GitHub Desktop.
Save ghostsquad/b8b020c72338daca90b3bbdf6e0b90e3 to your computer and use it in GitHub Desktop.
aliases
# Docker
alias drd='docker rmi $(docker images -f "dangling=true" -q)'
alias dre='docker rm $(docker ps -a -f status=exited -q)'
alias drc='docker rm $(docker ps -a -f status=created -q)'
alias dps='docker ps --format '\''table {{ .ID }}\t{{ .Image }}\t{{ .Names }}\t{{ .Ports }}'\'''
alias dpsa='docker ps -a --format '\''table {{ .ID }}\t{{ .Image }}\t{{ .Names }}\t{{ .Ports }}'\'''
# Git
# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git-extras/git-extras.plugin.zsh
alias git-update-fork="git pull upstream master && git push"
alias gfu='b=$(git symbolic-ref --short HEAD); git checkout master && git pull upstream master && git push && git checkout ${b}'
alias gci='git commit'
alias gca='git commit -a --amend --no-edit'
alias gh='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
alias gpr='git pr'
alias gpu='git pull upstream master'
# https://github.com/nvie/gitflow
alias gfl='git flow'
alias pr='pull-request'
alias gpsupg='gpsup && echo "aight!"'
# Ruby/Bundler
alias bx='bundle exec'
alias be='bundle exec'
# GNU Tools
alias grep='ggrep --color=AUTO'
alias time='/usr/bin/time'
alias timeout='gtimeout'
alias sed='gsed '
alias find='gfind'
alias date='gdate'
# Miscellaneous
alias ll='ls -l '
alias ls='ls -GFhla '
alias vi='vim '
# Kubernetes
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/kubectl/kubectl.plugin.zsh
alias k='kubectl'
alias kc='kubecfg'
alias ku='kubectl config use-context'
# Task Warrior
# https://taskwarrior.org/docs/syntax.html
alias t='task'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment