aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <muhq@muhq.space>2017-05-11 22:57:08 +0200
committerFlorian Fischer <muhq@muhq.space>2017-05-11 22:57:08 +0200
commit0a26bbe5cb29ec54ad640b598ea2c9e29a3cdd95 (patch)
tree89a23449f2714b3ddfa588d9c341b229ebe3db2f /config
parentbe80f9b46eefc89b30d5609b799a62056ebb0693 (diff)
downloaddotfiles-0a26bbe5cb29ec54ad640b598ea2c9e29a3cdd95.tar.gz
dotfiles-0a26bbe5cb29ec54ad640b598ea2c9e29a3cdd95.zip
fix guixsd path handling
Diffstat (limited to 'config')
-rw-r--r--config/fish/config.fish18
1 files changed, 9 insertions, 9 deletions
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