From e1f4cc22acd4fa1da68a5bfd87f41a3f95e58b28 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 10 Jul 2024 12:12:46 +0100 Subject: [PATCH] chore: Add git and Kubernetes aliases --- .bash_profile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.bash_profile b/.bash_profile index e48b59632a..8539cefd91 100644 --- a/.bash_profile +++ b/.bash_profile @@ -7,8 +7,28 @@ mkcdir () cd -P -- "$1" } +# Git aliases alias g="git" +alias gs="git status" +alias ga="git add" +alias gc="git checkout" +alias gb="git branch" +alias gp="git pull" +alias gpo="git push origin" +alias gl="git log" +alias gd="git diff" +alias gm="git merge" + +# Kubernetes aliases alias k="kubectl" +alias kg="kubectl get" +alias kd="kubectl describe" +alias kc="kubectl create" +alias kdel="kubectl delete" +alias klo="kubectl logs" +alias klof="kubectl logs -f" +alias kex="kubectl exec" +alias kexi="kubectl exec -it" # Docker aliases alias d="docker"