Created
November 15, 2018 18:40
-
-
Save modille/1f867b5d470618ed43ebc427cd720a8c to your computer and use it in GitHub Desktop.
docker-compose dahn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example usage: docker-compose dahn --remove-orphans | |
docker-compose_dahn() { | |
command docker-compose down "$@" | |
} | |
docker-compose() { | |
local cmd=$1; shift | |
if command -v "docker-compose_$cmd" >/dev/null 2>/dev/null; then | |
"docker-compose_$cmd" "$@" | |
else | |
command docker-compose "$cmd" "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment