From 8189956aa35a18bcaba2a02fd14efc555a33e5e5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 11 May 2017 23:02:32 +0200 Subject: really fix guixsd path handling --- config/fish/config.fish | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'config/fish') diff --git a/config/fish/config.fish b/config/fish/config.fish index 97923b4..5d35abf 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -1,11 +1,9 @@ # PATH Stuff # include guix paths -if type -q guix - for p in /home/fischerling/.guix-profile/bin /run/setuid-programs /run/current-system/profile/bin /run/current-system/profile/sbin - if not contains $p $PATH - set PATH $PATH $p - end +for p in /home/fischerling/.guix-profile/bin /run/setuid-programs /run/current-system/profile/bin /run/current-system/profile/sbin + if test -d $p; and not contains $p $PATH + set PATH $PATH $p end end -- cgit v1.2.3