diff options
| author | Florian Fischer <muhq@muhq.space> | 2017-04-27 01:03:43 +0200 |
|---|---|---|
| committer | Florian Fischer <muhq@muhq.space> | 2017-04-27 01:03:43 +0200 |
| commit | c2275cb0074f030904d6cb3ad7393b32530f4c9f (patch) | |
| tree | e022b4384d7af8fb63d6ee66651cecb5aae9e70d /config/fish | |
| parent | 4c19a21d90787bb629aa2d47a46770bf0677bda9 (diff) | |
| download | dotfiles-c2275cb0074f030904d6cb3ad7393b32530f4c9f.tar.gz dotfiles-c2275cb0074f030904d6cb3ad7393b32530f4c9f.zip | |
make config.fish guixsd ready :)
Diffstat (limited to 'config/fish')
| -rw-r--r-- | config/fish/config.fish | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish index 26e22fd..c6f1b06 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -10,23 +10,39 @@ if type -q multirust end #include go binaries -set -x GOPATH ~/Desktop/projects/go +if type -q go + set -x GOPATH ~/Desktop/projects/go -if not contains $GOPATH/bin $PATH - set PATH $GOPATH/bin $PATH + if not contains $GOPATH/bin $PATH + set PATH $GOPATH/bin $PATH + end end -if not contains /bin/core_perl $PATH - set PATH /bin/core_perl $PATH +# 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 + if not contains /bin/core_perl $PATH + set PATH /bin/core_perl $PATH + end + + if not contains /usr/local/bin $PATH + set PATH /usr/local/bin $PATH + end end if not contains ~/.local/bin $PATH set PATH ~/.local/bin $PATH end -if not contains /usr/local/bin $PATH - set PATH /usr/local/bin $PATH -end # export the path to our dotfiles set -x DOTFILES_LOCATION (get_dotfiles_location) |
