From e748d69b91967ac5c9d68ed9f9ad56f942d158c6 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Tue, 7 May 2019 11:57:57 -0400 Subject: [PATCH] Add dcontrol wrapper for 'docker-machine env' --- bash/docker-machine.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bash/docker-machine.sh diff --git a/bash/docker-machine.sh b/bash/docker-machine.sh new file mode 100644 index 0000000..27005bc --- /dev/null +++ b/bash/docker-machine.sh @@ -0,0 +1,10 @@ +# A simple wrapper for docker-machine. + +function dcontrol() { + if [ $1 = "off" ]; then + eval $(docker-machine env -u) + return + fi + + eval $(docker-machine env $1) +}