Skip to main content

This still isn’t working; maybe test -n is the key?

ID
b7d633e
date
2023-12-29 11:27:49+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
00300af
message
This still isn't working; maybe `test -n` is the key?
changed files
1 file, 1 addition, 1 deletion

Changed files

config.fish (5480) → config.fish (5479)

diff --git a/config.fish b/config.fish
index 535c2f8..ddeca7e 100644
--- a/config.fish
+++ b/config.fish
@@ -125,7 +125,7 @@ function __create_bash_script_alias
         # script, make sure we re-enable it afterwards.
         #
         # If not, we just need to deactivate the scripts venv.
-        if [ existing_venv = "" ]
+        if test -n existing_venv
             source "$existing_venv/bin/activate.fish"
         else
             deactivate