]> arthur.barton.de Git - ax-zsh.git/blob - plugins/docker-machine/docker-machine.zprofile
P10k: Read config after enabling instant prompt
[ax-zsh.git] / plugins / docker-machine / docker-machine.zprofile
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # docker.zprofile: Setup "docker" with "docker-machine"
3
4 # Make sure that "docker-machine" is installed
5 (( $+commands[docker-machine] )) || return
6
7 # Setup environment
8 if ! eval "$(docker-machine env default 2>/dev/null)"; then
9         # Clean environment on error
10         eval "$(docker-machine env -u)"
11 fi