mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
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.
22 lines
458 B
Bash
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"
|