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