diff options
author | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-18 03:11:14 -0700 |
---|---|---|
committer | David Luevano <55825613+luevano@users.noreply.github.com> | 2020-02-18 03:11:14 -0700 |
commit | cfe2b9e5fda87112c3e35bd9a8e953c1a591a499 (patch) | |
tree | cc70a1073eabda2b446bdc88639994302b84fc4c /.config/zsh | |
parent | ac8b1a6845c2bd0f47196abaed6b8d1e97e17058 (diff) |
Fix python environments in vim
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/.zshenv | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv new file mode 100644 index 0000000..bd8c365 --- /dev/null +++ b/.config/zsh/.zshenv @@ -0,0 +1,7 @@ +#!/bin/zsh +# ~/.config/zsh/.zshenv +# As suggested by https://vi.stackexchange.com/questions/7644/use-vim-with-virtualenv/7654#7654 + +if [[ -n $VIRTUAL_ENV && -e "${VIRTUAL_ENV}/bin/activate" ]]; then + source "${VIRTUAL_ENV}/bin/activate" +fi |