docker k8s

This commit is contained in:
Thomas Forgione 2023-02-02 18:11:52 +01:00
parent 44f739e9db
commit fd6138e96f
1 changed files with 17 additions and 0 deletions

View File

@ -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