]> arthur.barton.de Git - OhMyZshExtensions.git/blob - plugins/5_dev_env/5_dev_env.plugin.zsh
9e4cd26f62c606be52e7903796c5d231d55eaf64
[OhMyZshExtensions.git] / plugins / 5_dev_env / 5_dev_env.plugin.zsh
1 # 5_dev_env.plugin.zsh
2
3 # SSH wrapper
4 for ssh_wrapper in \
5         "$HOME/Applications/ssh-wrapper" \
6         "$HOME/Applications/ssh-q" \
7         "$HOME/bin/ssh-wrapper" \
8         "$HOME/bin/ssh-q" \
9 ; do
10         if [ -x "$ssh_wrapper" ]; then
11                 export GIT_SSH="$ssh_wrapper"
12                 break
13         fi
14 done
15 unset ssh_wrapper
16
17 # pip
18 if (( $+commands[pip] )); then
19         export PIP_REQUIRE_VIRTUALENV="true"
20 fi
21
22 # virtualenv[wrapper]
23 if (( $+commands[virtualenv] )); then
24         export WORKON_HOME="$XDG_CACHE_HOME/virtualenvs"
25         [ -d "$LOCAL_HOME/Develop" ] \
26                 && export PROJECT_HOME="$LOCAL_HOME/Develop" \
27                 || export PROJECT_HOME="$HOME/Develop"
28 fi