unset ssh_wrapper
# pip
-export PIP_REQUIRE_VIRTUALENV="true"
+if (( $+commands[pip] )); then
+ export PIP_REQUIRE_VIRTUALENV="true"
+fi
# virtualenv[wrapper]
-export WORKON_HOME="$XDG_CACHE_HOME/virtualenvs"
-[ -d "$LOCAL_HOME/Develop" ] \
- && export PROJECT_HOME="$LOCAL_HOME/Develop" \
- || export PROJECT_HOME="$HOME/Develop"
+if (( $+commands[virtualenv] )); then
+ export WORKON_HOME="$XDG_CACHE_HOME/virtualenvs"
+ [ -d "$LOCAL_HOME/Develop" ] \
+ && export PROJECT_HOME="$LOCAL_HOME/Develop" \
+ || export PROJECT_HOME="$HOME/Develop"
+fi
# boot2docker.plugin.zsh
-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]}
+if (( $+commands[boot2docker] )); then
+ 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
fi
# keychain.plugin.zsh
-eval $(keychain --agents ssh --eval --quick --quiet)
+if (( $+commands[keychain] )); then
+ eval $(keychain --agents ssh --eval --quick --quiet)
+fi
# thefuck.plugin.zsh
-alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+if (( $+commands[thefuck] )); then
+ alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+fi