Add dcontrol wrapper for 'docker-machine env'

This commit is contained in:
Anna Rose 2019-05-07 11:57:57 -04:00
parent 6ff6b5d6a2
commit e748d69b91
No known key found for this signature in database
GPG Key ID: CAA339DBB768ACC7

10
bash/docker-machine.sh Normal file
View File

@ -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)
}