From 2dd4760ca3e164a2650ec94645a7683148b15022 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 May 2024 18:15:54 +0200 Subject: bin: fix error when not using direnv --- bin/home-manager | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/home-manager b/bin/home-manager index 73d06c7f..cf434738 100755 --- a/bin/home-manager +++ b/bin/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 -- cgit 1.4.1