From: Alexander Barton Date: Sat, 18 Apr 2015 18:24:15 +0000 (+0200) Subject: "boot2docker": Define "DOCKER_HOST_IPA" variable X-Git-Url: https://arthur.barton.de/gitweb/?p=OhMyZshExtensions.git;a=commitdiff_plain;h=266ffcc3740ba80184545686bef9e58d9d39edbd;hp=6c62d7a6c213bf497011c963f1a5e4cf1ee2f366 "boot2docker": Define "DOCKER_HOST_IPA" variable --- diff --git a/plugins/boot2docker/boot2docker.plugin.zsh b/plugins/boot2docker/boot2docker.plugin.zsh index dfd3a15..9588ff2 100644 --- a/plugins/boot2docker/boot2docker.plugin.zsh +++ b/plugins/boot2docker/boot2docker.plugin.zsh @@ -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