Created
July 1, 2024 14:55
-
-
Save Vulwsztyn/c0694308e2b377014b25b0a9266f4799 to your computer and use it in GitHub Desktop.
Paste to .config/zsh-abbr
This file contains 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
abbr "drut"="docker container run -it -v $(pwd):/app -w /app" | |
abbr "vsc"="code ." | |
abbr "l"="exa -lag --header" | |
abbr "h"="history" | |
abbr "gcme"="git commit -m" | |
abbr "gs"='git push origin "$(git_current_branch)"' | |
abbr "gsf"='git push origin "$(git_current_branch)" --force' | |
abbr "dbl"='docker build' | |
abbr "dc"=docker | |
abbr "dcb"='docker compose build' | |
abbr "dcdn"='docker compose down' | |
abbr "dce"='docker compose exec' | |
abbr "dcin"='docker container inspect' | |
abbr "dck"='docker compose kill' | |
abbr "dcl"='docker compose logs' | |
abbr "dclF"='docker compose logs -f --tail 0' | |
abbr "dclf"='docker compose logs -f' | |
abbr "dcls"='docker container ls' | |
abbr "dclsa"='docker container ls -a' | |
abbr "dco"="docker compose" | |
abbr "dcps"='docker compose ps' | |
abbr "dcpull"='docker compose pull' | |
abbr "dcr"='docker compose run' | |
abbr "dcrestart"='docker compose restart' | |
abbr "dcrm"='docker compose rm' | |
abbr "dcstart"='docker compose start' | |
abbr "dcstop"='docker compose stop' | |
abbr "dcup"='docker compose up' | |
abbr "dcupb"='docker compose up --build' | |
abbr "dcupd"='docker compose up -d' | |
abbr "dcupdb"='docker compose up -d --build' | |
abbr "dib"='docker image build' | |
abbr "dii"='docker image inspect' | |
abbr "dils"='docker image ls' | |
abbr "dipu"='docker image push' | |
abbr "dirm"='docker image rm' | |
abbr "dit"='docker image tag' | |
abbr "dlo"='docker container logs' | |
abbr "dnc"='docker network create' | |
abbr "dncn"='docker network connect' | |
abbr "dndcn"='docker network disconnect' | |
abbr "dni"='docker network inspect' | |
abbr "dnls"='docker network ls' | |
abbr "dnrm"='docker network rm' | |
abbr "dpo"='docker container port' | |
abbr "dpu"='docker pull' | |
abbr "dr"='docker container run' | |
abbr "drit"='docker container run -it' | |
abbr "drm"='docker container rm' | |
abbr "drm"!='docker container rm -f' | |
abbr "drs"='docker container restart' | |
abbr "dst"='docker container start' | |
abbr "dsta"='docker stop $(docker ps -q)' | |
abbr "dstp"='docker container stop' | |
abbr "dtop"='docker top' | |
abbr "dvi"='docker volume inspect' | |
abbr "dvls"='docker volume ls' | |
abbr "dvprune"='docker volume prune' | |
abbr "dxc"='docker container exec' | |
abbr "dxcit"='docker container exec -it' | |
abbr "g"=git | |
abbr "ga"='git add' | |
abbr "gaa"='git add --all' | |
abbr "gam"='git am' | |
abbr "gama"='git am --abort' | |
abbr "gamc"='git am --continue' | |
abbr "gams"='git am --skip' | |
abbr "gamscp"='git am --show-current-patch' | |
abbr "gap"='git apply' | |
abbr "gapa"='git add --patch' | |
abbr "gapt"='git apply --3way' | |
abbr "gau"='git add --update' | |
abbr "gav"='git add --verbose' | |
abbr "gb"='git branch' | |
abbr "gbD"='git branch --delete --force' | |
abbr "gba"='git branch --all' | |
abbr "gbd"='git branch --delete' | |
abbr "gbg"='LANG=C git branch -vv | grep ": gone\]"' | |
abbr "gbgD"='LANG=C git branch --no-color -vv | grep ": gone\]" | awk '\''{print $1}'\'' | xargs git branch -D' | |
abbr "gbgd"='LANG=C git branch --no-color -vv | grep ": gone\]" | awk '\''{print $1}'\'' | xargs git branch -d' | |
abbr "gbl"='git blame -w' | |
abbr "gbm"='git branch --move' | |
abbr "gbnm"='git branch --no-merged' | |
abbr "gbr"='git branch --remote' | |
abbr "gbs"='git bisect' | |
abbr "gbsb"='git bisect bad' | |
abbr "gbsg"='git bisect good' | |
abbr "gbsn"='git bisect new' | |
abbr "gbso"='git bisect old' | |
abbr "gbsr"='git bisect reset' | |
abbr "gbss"='git bisect start' | |
abbr "gc"='git commit --verbose' | |
abbr "gc!"='git commit --verbose --amend' | |
abbr "gca"='git commit --verbose --all' | |
abbr "gca!"='git commit --verbose --all --amend' | |
abbr "gcam"='git commit --all --message' | |
abbr "gcan!"='git commit --verbose --all --no-edit --amend' | |
abbr "gcans!"='git commit --verbose --all --signoff --no-edit --amend' | |
abbr "gcas"='git commit --all --signoff' | |
abbr "gcasm"='git commit --all --signoff --message' | |
abbr "gcb"='git checkout -b' | |
abbr "gcd"='git checkout $(git_develop_branch)' | |
abbr "gcf"='git config --list' | |
abbr "gcl"='git clone --recurse-submodules' | |
abbr "gclean"='git clean --interactive -d' | |
abbr "gcm"='git checkout $(git_main_branch)' | |
abbr "gcmsg"='git commit --message' | |
abbr "gcn!"='git commit --verbose --no-edit --amend' | |
abbr "gco"='git checkout' | |
abbr "gcor"='git checkout --recurse-submodules' | |
abbr "gcount"='git shortlog --summary --numbered' | |
abbr "gcp"='git cherry-pick' | |
abbr "gcpa"='git cherry-pick --abort' | |
abbr "gcpc"='git cherry-pick --continue' | |
abbr "gcs"='git commit --gpg-sign' | |
abbr "gcsm"='git commit --signoff --message' | |
abbr "gcss"='git commit --gpg-sign --signoff' | |
abbr "gcssm"='git commit --gpg-sign --signoff --message' | |
abbr "gd"='git diff' | |
abbr "gdca"='git diff --cached' | |
abbr "gdct"='git describe --tags $(git rev-list --tags --max-count=1)' | |
abbr "gdcw"='git diff --cached --word-diff' | |
abbr "gds"='git diff --staged' | |
abbr "gdt"='git diff-tree --no-commit-id --name-only -r' | |
abbr "gdup"='git diff @{upstream}' | |
abbr "gdw"='git diff --word-diff' | |
abbr "gf"='git fetch' | |
abbr "gfa"='git fetch --all --prune --jobs=10' | |
abbr "gfg"='git ls-files | grep' | |
abbr "gfo"='git fetch origin' | |
abbr "gg"='git gui citool' | |
abbr "gga"='git gui citool --amend' | |
abbr "ggpull"='git pull origin "$(git_current_branch)"' | |
abbr "ggpush"='git push origin "$(git_current_branch)"' | |
abbr "ggsup"='git branch --set-upstream-to=origin/$(git_current_branch)' | |
abbr "ghh"='git help' | |
abbr "gignore"='git update-index --assume-unchanged' | |
abbr "gignored"='git ls-files -v | grep "^[[:lower:]]"' | |
abbr "git"-svn-dcommit-push='git svn dcommit && git push github $(git_main_branch):svntrunk' | |
abbr "gk"='\gitk --all --branches &!' | |
abbr "gke"='\gitk --all $(git log --walk-reflogs --pretty=%h) &!' | |
abbr "gl"='git pull' | |
abbr "glfsi"='git lfs install' | |
abbr "glfsls"='git lfs ls-files' | |
abbr "glfsmi"='git lfs migrate import --include=' | |
abbr "glfst"='git lfs track' | |
abbr "glg"='git log --stat' | |
abbr "glgg"='git log --graph' | |
abbr "glgga"='git log --graph --decorate --all' | |
abbr "glgm"='git log --graph --max-count=10' | |
abbr "glgp"='git log --stat --patch' | |
abbr "glo"='git log --oneline --decorate' | |
abbr "glod"='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset"' | |
abbr "glods"='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset" --date=short' | |
abbr "glog"='git log --oneline --decorate --graph' | |
abbr "gloga"='git log --oneline --decorate --graph --all' | |
abbr "glol"='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset"' | |
abbr "glola"='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset" --all' | |
abbr "glols"='git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset" --stat' | |
abbr "glp"=_git_log_prettily | |
abbr "gluc"='git pull upstream $(git_current_branch)' | |
abbr "glum"='git pull upstream $(git_main_branch)' | |
abbr "gm"='git merge' | |
abbr "gma"='git merge --abort' | |
abbr "gmom"='git merge origin/$(git_main_branch)' | |
abbr "gms"='git merge --squash' | |
abbr "gmtl"='git mergetool --no-prompt' | |
abbr "gmtlvim"='git mergetool --no-prompt --tool=vimdiff' | |
abbr "gmum"='git merge upstream/$(git_main_branch)' | |
abbr "gp"='git push' | |
abbr "gpd"='git push --dry-run' | |
abbr "gpf"='git push --force-with-lease' | |
abbr "gpf!"='git push --force' | |
abbr "gpoat"='git push origin --all && git push origin --tags' | |
abbr "gpod"='git push origin --delete' | |
abbr "gpr"='git pull --rebase' | |
abbr "gpra"='git pull --rebase --autostash' | |
abbr "gprav"='git pull --rebase --autostash -v' | |
abbr "gpristine"='git reset --hard && git clean --force -dfx' | |
abbr "gprom"='git pull --rebase origin $(git_main_branch)' | |
abbr "gpromi"='git pull --rebase=interactive origin $(git_main_branch)' | |
abbr "gprv"='git pull --rebase -v' | |
abbr "gpsup"='git push --set-upstream origin $(git_current_branch)' | |
abbr "gpsupf"='git push --set-upstream origin $(git_current_branch) --force-with-lease' | |
abbr "gpu"='git push upstream' | |
abbr "gpv"='git push --verbose' | |
abbr "gr"='git remote' | |
abbr "gra"='git remote add' | |
abbr "grb"='git rebase' | |
abbr "grba"='git rebase --abort' | |
abbr "grbc"='git rebase --continue' | |
abbr "grbd"='git rebase $(git_develop_branch)' | |
abbr "grbi"='git rebase --interactive' | |
abbr "grbm"='git rebase $(git_main_branch)' | |
abbr "grbo"='git rebase --onto' | |
abbr "grbom"='git rebase origin/$(git_main_branch)' | |
abbr "grbs"='git rebase --skip' | |
abbr "grev"='git revert' | |
abbr "grh"='git reset' | |
abbr "grhh"='git reset --hard' | |
abbr "grhk"='git reset --keep' | |
abbr "grhs"='git reset --soft' | |
abbr "grm"='git rm' | |
abbr "grmc"='git rm --cached' | |
abbr "grmv"='git remote rename' | |
abbr "groh"='git reset origin/$(git_current_branch) --hard' | |
abbr "grrm"='git remote remove' | |
abbr "grs"='git restore' | |
abbr "grset"='git remote set-url' | |
abbr "grss"='git restore --source' | |
abbr "grst"='git restore --staged' | |
abbr "grt"='cd "$(git rev-parse --show-toplevel || echo .)"' | |
abbr "gru"='git reset --' | |
abbr "grup"='git remote update' | |
abbr "grv"='git remote --verbose' | |
abbr "gsb"='git status --short --branch' | |
abbr "gsd"='git svn dcommit' | |
abbr "gsh"='git show' | |
abbr "gsi"='git submodule init' | |
abbr "gsps"='git show --pretty=short --show-signature' | |
abbr "gsr"='git svn rebase' | |
abbr "gss"='git status --short' | |
abbr "gst"='git status' | |
abbr "gsta"='git stash push' | |
abbr "gstaa"='git stash apply' | |
abbr "gstall"='git stash --all' | |
abbr "gstc"='git stash clear' | |
abbr "gstd"='git stash drop' | |
abbr "gstl"='git stash list' | |
abbr "gstp"='git stash pop' | |
abbr "gsts"='git stash show --patch' | |
abbr "gsu"='git submodule update' | |
abbr "gsw"='git switch' | |
abbr "gswc"='git switch --create' | |
abbr "gswd"='git switch $(git_develop_branch)' | |
abbr "gswm"='git switch $(git_main_branch)' | |
abbr "gta"='git tag --annotate' | |
abbr "gtl"='gtl(){ git tag --sort=-v:refname -n --list "${1}*" }; noglob gtl' | |
abbr "gts"='git tag --sign' | |
abbr "gtv"='git tag | sort -V' | |
abbr "gunignore"='git update-index --no-assume-unchanged' | |
abbr "gunwip"='git rev-list --max-count=1 --format="%s" HEAD | grep -q "\--wip--" && git reset HEAD~1' | |
abbr "gupo"='git pull --rebase origin' | |
abbr "gupod"='git pull --rebase origin develop' | |
abbr "gwch"='git whatchanged -p --abbrev-commit --pretty=medium' | |
abbr "gwip"='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign --message "--wip-- [skip ci]"' | |
abbr "gwt"='git worktree' | |
abbr "gwta"='git worktree add' | |
abbr "gwtls"='git worktree list' | |
abbr "gwtmv"='git worktree move' | |
abbr "gwtrm"='git worktree remove' | |
abbr "k"=kubectl | |
abbr "kaf"='kubectl apply -f' | |
abbr "kca"='_kca(){ kubectl "$@" --all-namespaces; unset -f _kca; }; _kca' | |
abbr "kccc"='kubectl config current-context' | |
abbr "kcdc"='kubectl config delete-context' | |
abbr "kcgc"='kubectl config get-contexts' | |
abbr "kcn"='kubectl config set-context --current --namespace' | |
abbr "kcp"='kubectl cp' | |
abbr "kcsc"='kubectl config set-context' | |
abbr "kcuc"='kubectl config use-context' | |
abbr "kdcj"='kubectl describe cronjob' | |
abbr "kdcm"='kubectl describe configmap' | |
abbr "kdd"='kubectl describe deployment' | |
abbr "kdds"='kubectl describe daemonset' | |
abbr "kdel"='kubectl delete' | |
abbr "kdelcj"='kubectl delete cronjob' | |
abbr "kdelcm"='kubectl delete configmap' | |
abbr "kdeld"='kubectl delete deployment' | |
abbr "kdelds"='kubectl delete daemonset' | |
abbr "kdelf"='kubectl delete -f' | |
abbr "kdeli"='kubectl delete ingress' | |
abbr "kdelj"='kubectl delete job' | |
abbr "kdelno"='kubectl delete node' | |
abbr "kdelns"='kubectl delete namespace' | |
abbr "kdelp"='kubectl delete pods' | |
abbr "kdelpvc"='kubectl delete pvc' | |
abbr "kdels"='kubectl delete svc' | |
abbr "kdelsa"='kubectl delete sa' | |
abbr "kdelsec"='kubectl delete secret' | |
abbr "kdelss"='kubectl delete statefulset' | |
abbr "kdi"='kubectl describe ingress' | |
abbr "kdj"='kubectl describe job' | |
abbr "kdno"='kubectl describe node' | |
abbr "kdns"='kubectl describe namespace' | |
abbr "kdp"='kubectl describe pods' | |
abbr "kdpvc"='kubectl describe pvc' | |
abbr "kdrs"='kubectl describe replicaset' | |
abbr "kds"='kubectl describe svc' | |
abbr "kdsa"='kubectl describe sa' | |
abbr "kdsec"='kubectl describe secret' | |
abbr "kdss"='kubectl describe statefulset' | |
abbr "kecj"='kubectl edit cronjob' | |
abbr "kecm"='kubectl edit configmap' | |
abbr "ked"='kubectl edit deployment' | |
abbr "keds"='kubectl edit daemonset' | |
abbr "kei"='kubectl edit ingress' | |
abbr "kej"='kubectl edit job' | |
abbr "keno"='kubectl edit node' | |
abbr "kens"='kubectl edit namespace' | |
abbr "kep"='kubectl edit pods' | |
abbr "kepvc"='kubectl edit pvc' | |
abbr "kers"='kubectl edit replicaset' | |
abbr "kes"='kubectl edit svc' | |
abbr "kess"='kubectl edit statefulset' | |
abbr "keti"='kubectl exec -t -i' | |
abbr "kga"='kubectl get all' | |
abbr "kgaa"='kubectl get all --all-namespaces' | |
abbr "kgcj"='kubectl get cronjob' | |
abbr "kgcm"='kubectl get configmaps' | |
abbr "kgcma"='kubectl get configmaps --all-namespaces' | |
abbr "kgd"='kubectl get deployment' | |
abbr "kgda"='kubectl get deployment --all-namespaces' | |
abbr "kgds"='kubectl get daemonset' | |
abbr "kgdsa"='kubectl get daemonset --all-namespaces' | |
abbr "kgi"='kubectl get ingress' | |
abbr "kgia"='kubectl get ingress --all-namespaces' | |
abbr "kgj"='kubectl get job' | |
abbr "kgno"='kubectl get nodes' | |
abbr "kgns"='kubectl get namespaces' | |
abbr "kgp"='kubectl get pods' | |
abbr "kgpa"='kubectl get pods --all-namespaces' | |
abbr "kgpall"='kubectl get pods --all-namespaces -o wide' | |
abbr "kgpvc"='kubectl get pvc' | |
abbr "kgpvca"='kubectl get pvc --all-namespaces' | |
abbr "kgrs"='kubectl get replicaset' | |
abbr "kgs"='kubectl get svc' | |
abbr "kgsa"='kubectl get svc --all-namespaces' | |
abbr "kgsec"='kubectl get secret' | |
abbr "kgseca"='kubectl get secret --all-namespaces' | |
abbr "kgss"='kubectl get statefulset' | |
abbr "kgssa"='kubectl get statefulset --all-namespaces' | |
abbr "kl"='kubectl logs' | |
abbr "kl1h"='kubectl logs --since 1h' | |
abbr "kl1m"='kubectl logs --since 1m' | |
abbr "kl1s"='kubectl logs --since 1s' | |
abbr "klf"='kubectl logs -f' | |
abbr "klf1h"='kubectl logs --since 1h -f' | |
abbr "klf1m"='kubectl logs --since 1m -f' | |
abbr "klf1s"='kubectl logs --since 1s -f' | |
abbr "kpf"='kubectl port-forward' | |
abbr "krh"='kubectl rollout history' | |
abbr "krsd"='kubectl rollout status deployment' | |
abbr "krsss"='kubectl rollout status statefulset' | |
abbr "kru"='kubectl rollout undo' | |
abbr "ksd"='kubectl scale deployment' | |
abbr "ksss"='kubectl scale statefulset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment