fe05058c71d3868b9d93f9cfd2dc648f52963f72

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
Michael Aquilina <michaelaquilina@gmail.com>
Date

Message

Set AUTOSWITCH_DEFAULT_PYTHON default to python3

Diff

 1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
 2index 7ca82d42db6cd462c673ebaffa1bdbf78e852fe1..1856ba631513f38cf6ce080dd56cd1405544ae6a 100644
 3--- a/autoswitch_virtualenv.plugin.zsh
 4+++ b/autoswitch_virtualenv.plugin.zsh
 5@@ -413,7 +413,7 @@ function disable_autoswitch_virtualenv() {
 6 # immediately removes itself from the zsh-hook.
 7 # This seems important for "instant prompt" zsh themes like powerlevel10k
 8 function _autoswitch_startup() {
 9-    local python_bin="${AUTOSWITCH_DEFAULT_PYTHON:-python}"
10+    local python_bin="${AUTOSWITCH_DEFAULT_PYTHON:-python3}"
11     if ! type "${python_bin}" > /dev/null; then
12         printf "WARNING: python binary '${python_bin}' not found on PATH.\n"
13         printf "zsh-autoswitch-virtualenv plugin will be disabled.\n"