Skip to content

Commit

Permalink
Use better terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Dec 19, 2023
1 parent e66d869 commit ebf49f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit ebf49f4

Please sign in to comment.