From 0a26bbe5cb29ec54ad640b598ea2c9e29a3cdd95 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 11 May 2017 22:57:08 +0200 Subject: fix guixsd path handling --- config/fish/config.fish | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'config/fish') diff --git a/config/fish/config.fish b/config/fish/config.fish index 97cc534..97923b4 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -1,5 +1,14 @@ # 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 + end +end + # include cargo binaries if type -q multirust for p in $HOME/.multirust/toolchains/*/cargo/bin @@ -18,15 +27,6 @@ if type -q go end end -# 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 - end -end - # guixsd has nether /bin nor /usr # TODO find a better way to check if we are on guixsd if not type -q guix -- cgit v1.2.3