aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <muhq@muhq.space>2017-05-11 23:02:32 +0200
committerFlorian Fischer <muhq@muhq.space>2017-05-11 23:06:32 +0200
commit8189956aa35a18bcaba2a02fd14efc555a33e5e5 (patch)
tree146d9032dbd4e686bad3c93e843a3c2cfe2e919b /config
parent0a26bbe5cb29ec54ad640b598ea2c9e29a3cdd95 (diff)
downloaddotfiles-8189956aa35a18bcaba2a02fd14efc555a33e5e5.tar.gz
dotfiles-8189956aa35a18bcaba2a02fd14efc555a33e5e5.zip
really fix guixsd path handling
Diffstat (limited to 'config')
-rw-r--r--config/fish/config.fish8
1 files changed, 3 insertions, 5 deletions
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