449d1347bb124d85fde7330f689a288986551b89
- Author
- Nogweii <me@nogweii.net>
- Committer
- Nogweii <me@nogweii.net>
- Date
Message
Only check for python once
Diff
1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
2index 5784d3586c4952b3cdfac39b4182f4810b08e8de..c08b9c1f84e981c184b6d7e2df84cd24b2324eb5 100644
3--- a/autoswitch_virtualenv.plugin.zsh
4+++ b/autoswitch_virtualenv.plugin.zsh
5@@ -418,10 +418,10 @@ function _autoswitch_startup() {
6 printf "WARNING: python binary '${python_bin}' not found on PATH.\n"
7 printf "zsh-autoswitch-virtualenv plugin will be disabled.\n"
8 else
9- add-zsh-hook -D precmd _autoswitch_startup
10 enable_autoswitch_virtualenv
11 check_venv
12 fi
13+ add-zsh-hook -D precmd _autoswitch_startup
14 }
15
16 autoload -Uz add-zsh-hook