Probably not such a good idea: the OhMyZsh plugins don't follow this
style but echo warning/error messages. So please adjust your ~/.zshrc
to (conditionally) only list desired/available plugins.
This reverts commit
9ea48355673a75f1d63320be20a231837a816781.
unset ssh_wrapper
# pip
-if (( $+commands[pip] )); then
- export PIP_REQUIRE_VIRTUALENV="true"
-fi
+export PIP_REQUIRE_VIRTUALENV="true"
# virtualenv[wrapper]
-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
+export WORKON_HOME="$XDG_CACHE_HOME/virtualenvs"
+[ -d "$LOCAL_HOME/Develop" ] \
+ && export PROJECT_HOME="$LOCAL_HOME/Develop" \
+ || export PROJECT_HOME="$HOME/Develop"
# boot2docker.plugin.zsh
-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
+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
# keychain.plugin.zsh
-if (( $+commands[keychain] )); then
- eval $(keychain --agents ssh --eval --quick --quiet)
-fi
+eval $(keychain --agents ssh --eval --quick --quiet)
# thefuck.plugin.zsh
-if (( $+commands[thefuck] )); then
- alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
-fi
+alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'