From: Alexander Barton Date: Tue, 5 May 2015 20:59:17 +0000 (+0200) Subject: Add "5_dev_env" plugin: Setup local development environment X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=OhMyZshExtensions.git;a=commitdiff_plain;h=c96256e29114a4d60fe12c2e8b30331078638678 Add "5_dev_env" plugin: Setup local development environment At the moment, some environment variables for Git, pip, and virtualenvwrapper will be set. --- diff --git a/plugins/5_dev_env/5_dev_env.plugin.zsh b/plugins/5_dev_env/5_dev_env.plugin.zsh new file mode 100644 index 0000000..8ba7a97 --- /dev/null +++ b/plugins/5_dev_env/5_dev_env.plugin.zsh @@ -0,0 +1,26 @@ +# 5_dev_env.plugin.zsh +# 2015-05-05, alex@barton.de + +# SSH wrapper +for ssh_wrapper in \ + "$HOME/Applications/ssh-wrapper" \ + "$HOME/Applications/ssh-q" \ + "$HOME/bin/ssh-wrapper" \ + "$HOME/bin/ssh-q" \ +; do + if [ -x "$ssh_wrapper" ]; then + export GIT_SSH="$ssh_wrapper" + break + fi +done +unset ssh_wrapper + +# pip +export PIP_REQUIRE_VIRTUALENV="true" +export PIP_DOWNLOAD_CACHE="$XDG_CACHE_HOME/pip" + +# virtualenv[wrapper] +export WORKON_HOME="$XDG_CACHE_HOME/virtualenvs" +[ -d "$LOCAL_HOME/Develop" ] \ + && export PROJECT_HOME="$LOCAL_HOME/Develop" \ + || export PROJECT_HOME="$HOME/Develop"