diff --git a/config.fish b/config.fish index bec6f76..9e72281 100644 --- a/config.fish +++ b/config.fish @@ -75,7 +75,7 @@ set -g -x PIP_REQUIRE_VIRTUALENV true # # See https://fishshell.com/docs/current/language.html#event # -function __auto_enable_venv --description "Auto enable/disable virtualenv when I change directories" +function __auto_auto_activate_venv --description "Auto activate/deactivate virtualenv when I change directories" auto_enable_venv end diff --git a/fish_functions/auto_enable_venv.fish b/fish_functions/auto_activate_venv.fish similarity index 84% rename from fish_functions/auto_enable_venv.fish rename to fish_functions/auto_activate_venv.fish index 74a2183..9093283 100644 --- a/fish_functions/auto_enable_venv.fish +++ b/fish_functions/auto_activate_venv.fish @@ -1,10 +1,10 @@ -# This tells fish to auto-enable my virtualenvs when I change directories. +# This tells fish to auto-activate my virtualenvs when I change directories. # # I have a fairly simple naming convention for my virtualenvs: I put # them in the root of the Git repo for each project, and I always # name them `~/.venv`. This means it's pretty easy to work out if # a virtualenv exists for the current directory. -function auto_enable_venv --description "Auto enable/disable virtualenv when I change directories" +function auto_activate_venv --description "Auto activate/deactivate virtualenv when I change directories" set REPO_ROOT (git rev-parse --show-toplevel 2>/dev/null) # If we're not inside a Git repo, there's no virtualenv to activate.