]> arthur.barton.de Git - OhMyZshExtensions.git/blob - plugins/boot2docker/boot2docker.plugin.zsh
Revert "Change plugins to not do anything if tool isn't available"
[OhMyZshExtensions.git] / plugins / boot2docker / boot2docker.plugin.zsh
1 # boot2docker.plugin.zsh
2
3 boot2docker status | fgrep "running" >/dev/null
4 if [ $? -eq 0 ]; then
5         # boot2docker VM is running
6         eval `boot2docker shellinit 2>/dev/null`
7         DOCKER_HOST_IPA=${(z)${(s.:.)DOCKER_HOST#tcp://}[1]}
8 fi