From fd6138e96fa3290560682503cfb9e8a360a01981 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 2 Feb 2023 18:11:52 +0100 Subject: [PATCH] docker k8s --- zsh/aliases.zsh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index f847920..37feeff 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -76,6 +76,23 @@ if [ $? -eq 0 ]; then eval $(thefuck --alias) fi +# Docker and kubernetes aliases +command -v k9s > /dev/null 2>&1 +if [ $? -eq 0 ]; then + alias kns="k9s" +fi + +command -v lazydocker > /dev/null 2>&1 +if [ $? -eq 0 ]; then + alias ld="lazydocker" +fi + +command -v docker-compose > /dev/null 2>&1 +if [ $? -eq 0 ]; then + alias dc="docker-compose" + alias dcu="docker-compose up -d --build --remove-orphans" +fi + # change to git directory cdg() { local newdir