ADD docker aliases (finally)

This commit is contained in:
Nathan Dwarshuis 2024-10-14 16:01:35 -04:00
parent b933cdc4af
commit d1a40dd49d
1 changed files with 14 additions and 4 deletions

View File

@ -28,16 +28,16 @@ alias_if () {
alias_if_N "$1" -- "${@:2}"
}
alias_if_sudo () {
alias_if_N sudo "$1" -- "${@:2}"
}
alias_if_else () {
if ! alias_if_N "$1" -- "$2"; then
alias "$3"
fi
}
alias_if_sudo () {
alias_if_N "$1" -- "${@:2}"
}
## --------------------------------------------------
# autocompletion
## --------------------------------------------------
@ -357,6 +357,16 @@ alias_if chezmoi \
czu="chezmoi update" \
czc="chezmoi cd"
alias_if_sudo docker \
dr="sudo docker" \
drc="sudo docker container" \
drx="sudo docker exec -it" \
drX="sudo docker exec" \
dri="sudo docker inspect" \
drg="sudo docker image" \
drv="sudo docker volume" \
drk="sudo docker compose"
alias_if xclip \
xclip-img="xclip -selection clipboard -t image/png -i"