Created
October 25, 2015 02:14
-
-
Save yzguy/ccd05655b92019e42478 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| dm() { | |
| case $1 in | |
| ip ) | |
| docker-machine ip $DOCKER_MACHINE_NAME | |
| ;; | |
| set ) | |
| eval $(docker-machine env $2) | |
| ;; | |
| * ) | |
| docker-machine $@ | |
| ;; | |
| esac | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment