This article documents my favourite shell aliases. Some of these are manual additions to my .zshrc
, others come from a couple of plugins delivered by Oh My Zsh!. I'll write a post about Oh My Zsh! someday, in the meanwhile here is a list of plugins I heavily rely on:
Table of contents
- Git
- Terraform
- Tmux
Git
Note: Check all Git aliases from Oh My Zsh! here: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git#aliases
Command |
Alias |
General
|
git status |
gst |
git log --oneline --decorate |
glo |
Branches and checkouts
|
git checkout |
gco |
git checkout -b |
gcb |
git checkout master |
gcbm |
Push / Pull
|
git push |
gp |
git pull |
gl |
Rebase
|
git rebase |
grb |
git rebase master |
grbm |
git rebase -i |
grbi |
Other
|
git cherry-pick |
gcp |
git diff |
gd |
Top
Tmux
Command |
Alias |
tmux list-sessions |
tl |
tmux attach -t |
ta |
tmux new-session -s |
ts |
Top
Command |
Alias |
terraform |
tf |
terraform workspace |
tfw |
Top