akhayyat/dotfiles

zsh: update virtualenvwrapper path to new location

Commit 6fa53b060311 · Ahmad Khayyat · 2019-11-10 21:52 +0300

Changeset
6fa53b060311e2fd3dbba04475c33a768f5f9ec2

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/zsh/programs.zsh b/zsh/programs.zsh
--- a/zsh/programs.zsh
+++ b/zsh/programs.zsh
@@ -29,8 +29,6 @@
 
 # virtualenvwrapper
 export VIRTUAL_ENV_DISABLE_PROMPT=1
-if [ -r /etc/bash_completion.d/virtualenvwrapper ]; then
-    source /etc/bash_completion.d/virtualenvwrapper
 fi
 
 # pip
@@ -46,6 +44,8 @@
 if [ -x $HOME/local/software/grails/bin/grails ]; then
    export GRAILS_HOME=$HOME/local/software/grails
    export PATH=$PATH:$GRAILS_HOME/bin
+if [ -r /usr/share/bash-completion/completions/virtualenvwrapper ]; then
+    source /usr/share/bash-completion/completions/virtualenvwrapper
 fi
 
 # Emacs