Files
dotfiles/zsh/docker.zsh
Jim Myhrberg f302739ea6 fix(docker): set co alias to use old docker-compose command
The dc alias still uses "docker compose" to access the newer built-in
compose command. I still was quick access to the older one, as I've had
some edge-case issues with the built-in variant.
2021-08-30 22:49:01 +01:00

22 lines
458 B
Bash

#
# Docker Related
#
if command-exists docker; then
zinit ice from'gh-r' as'program' mv'ctop-* -> ctop'
zinit light bcicen/ctop
fi
docker_remove_exited() {
docker rm $(docker ps -f='status=exited' -q)
}
# Disable docker scan suggestion/advertisement. It currently prints even when -q
# is passed to docker build.
export DOCKER_SCAN_SUGGEST=false
alias d="docker"
alias dc="docker compose"
alias co="docker-compose"
alias dre="docker_remove_exited"