]> arthur.barton.de Git - OhMyZshExtensions.git/commitdiff
"boot2docker": Define "DOCKER_HOST_IPA" variable
authorAlexander Barton <alex@barton.de>
Sat, 18 Apr 2015 18:24:15 +0000 (20:24 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 18 Apr 2015 18:24:15 +0000 (20:24 +0200)
plugins/boot2docker/boot2docker.plugin.zsh

index dfd3a15531e7969125e140d0c3a29de9cde18ffb..9588ff2a4d70c80f18a1b6b6956d99f862c22f32 100644 (file)
@@ -5,4 +5,5 @@ boot2docker status | fgrep "running" >/dev/null
 if [ $? -eq 0 ]; then
        # boot2docker VM is running
        eval `boot2docker shellinit 2>/dev/null`
+       DOCKER_HOST_IPA=${(z)${(s.:.)DOCKER_HOST#tcp://}[1]}
 fi