]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/docker.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 8 Nov 2016 21:24:18 +0000 (21:24 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 8 Nov 2016 21:24:18 +0000 (21:24 +0000)
etc/profile.d/docker.sh [new file with mode: 0644]

diff --git a/etc/profile.d/docker.sh b/etc/profile.d/docker.sh
new file mode 100644 (file)
index 0000000..ff30b69
--- /dev/null
@@ -0,0 +1,3 @@
+if [ -z "$MYVIMRC" ]; then
+  [ -z "$DOCKER_CERT_PATH" -o ! -e "$DOCKER_CERT_PATH" ] && docker-machine ls -q >/dev/null |grep -qFm1 docker && eval "$(docker-machine env docker)" 2>/dev/null
+fi