Last active
August 29, 2015 14:22
-
-
Save vitaly/c1acd4ef89a662c9e019 to your computer and use it in GitHub Desktop.
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
DOCKER="`which docker`" | |
function docker() | |
{ | |
if [ -n "$1" ]; then | |
local cmd="$1"; shift | |
if which "docker-$cmd" > /dev/null; then | |
"docker-$cmd" "$@" | |
else | |
"$DOCKER" "$cmd" "$@" | |
fi | |
else | |
"$DOCKER" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment