aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-03-25 11:05:29 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-03-25 11:05:29 +0100
commitbd341c421fdcc845921179e72f5a1fab912cb98b (patch)
treeac65fde26e109876f6da32daaef597713b9dcb82 /config
parent681af9628d097be4e4f64e4aab031cc8b7416733 (diff)
downloaddotfiles-bd341c421fdcc845921179e72f5a1fab912cb98b.tar.gz
dotfiles-bd341c421fdcc845921179e72f5a1fab912cb98b.zip
[fish] update config for fish 3.2
Diffstat (limited to 'config')
-rw-r--r--config/fish/config.fish20
-rw-r--r--config/fish/fish_plugins2
2 files changed, 6 insertions, 16 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish
index 5f53a8c..26c36a4 100644
--- a/config/fish/config.fish
+++ b/config/fish/config.fish
@@ -4,9 +4,7 @@ umask 027
# PATH Stuff
for dir in /bin /sbin ~/.local/bin
- if not contains $dir $PATH; and test -d $dir
- set PATH $dir $PATH
- end
+ fish_add_path $dir
end
# export the path to our dotfiles
@@ -17,9 +15,7 @@ end
# include cargo binaries
if type -q rustup
for p in $HOME/.rustup/toolchains/*/bin $HOME/.cargo/bin
- if not contains $p $PATH
- set PATH $PATH $p
- end
+ fish_add_path $p
end
end
@@ -34,23 +30,17 @@ if type -q go
end
end
-# guixsd has nether /bin nor /usr
# TODO find a better way to check if we are on guixsd
if type -q guix
set -x GUIX_PACKAGE_PATH $DOTFILES_LOCATION/guix/packages
# source the system paths
set fish_function_path $fish_function_path /run/current-system/profile/share/fish/functions
set fish_complete_path $fish_complete_path /run/current-system/profile/share/fish/completions
-else
- if test -d /bin/core_perl; and 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
+fish_add_path /bin/core_perl
+fish_add_path /usr/local/bin
+
# autoload functions and completions in .dotfiles
set fish_function_path $DOTFILES_LOCATION/config/fish/functions $fish_function_path
# add arch specific functions
diff --git a/config/fish/fish_plugins b/config/fish/fish_plugins
index 38c4a91..d8b16da 100644
--- a/config/fish/fish_plugins
+++ b/config/fish/fish_plugins
@@ -2,4 +2,4 @@ fischerling/mark
fischerling/plugin-wd
jethrokuan/z
jorgebucaran/fisher
-ilancosman/tide@v4.1.1
+ilancosman/tide