all repos — nixfiles @ 2dd4760ca3e164a2650ec94645a7683148b15022

System and user configuration, managed by nix and home-manager

bin: fix error when not using direnv
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 18:15:54 +0200
commit

2dd4760ca3e164a2650ec94645a7683148b15022

parent

34e0a182560bb86e85f3ee45cd9b4296576922de

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M bin/home-managerbin/home-manager
@@ -135,8 +135,7 @@ for old in $channel_root/$old_channels     rm $old
 end
 
-set --function i (contains --index (status dirname) $PATH)
-if test -n $i
+if set --function i (contains --index (status dirname) $PATH) && test -n $i
     set --erase PATH[$i]
 end