1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prezto/modules/docker/init.zsh

21 lines
423 B

#
# Sets the environment variables to work with docker through boot2docker
#
# Authors:
# Pavel Chernykh <pavel.v.chernykh@gmail.com>
#
#
# Return if requirements are not found.
#
if (( !( $+commands[docker] && $+commands[boot2docker]) )); then
return 1
fi
#
# Set the environment variables if boot2docker is running
#
if [[ `boot2docker status` == "running" ]]; then
eval `boot2docker shellinit 2> /dev/null`
fi