Skip to content

Commit d187634

Browse files
committed
Fix a bug in auto_enable_venv.fish
1 parent 665bd16 commit d187634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fish_functions/auto_enable_venv.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function auto_enable_venv
1313
# (e.g. we've switched from a Git repo to another directory).
1414
# Otherwise there's nothing to do.
1515
if [ "$REPO_ROOT" = "" ]
16-
if test -n "$VIRTUAL_ENV"
16+
if [ -n "$VIRTUAL_ENV" ]
1717
deactivate
1818
end
1919
end
@@ -25,7 +25,7 @@ function auto_enable_venv
2525
return
2626
end
2727

28-
if [ test -d "$REPO_ROOT/.venv"]
28+
if [ -d "$REPO_ROOT/.venv" ]
2929
source "$REPO_ROOT/.venv/bin/activate.fish" &>/dev/null
3030
end
3131
end

0 commit comments

Comments
 (0)