1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-25 07:58:31 +02:00

fish: source each file in plugin conf.d separately

According to https://fishshell.com/docs/current/cmds/source.html,
only one file can be sourced at a time: "If additional arguments are
specified after the file name, they will be inserted into the $argv
variable."

PR #1204
This commit is contained in:
Peter Rice 2020-04-29 11:41:30 -04:00 committed by Robert Helgesson
parent a7cdfaa325
commit 8b82f52e75
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 6 additions and 2 deletions

View File

@ -441,7 +441,9 @@ in {
# Source initialization code if it exists.
if test -d $plugin_dir/conf.d
source $plugin_dir/conf.d/*.fish
for f in $plugin_dir/conf.d/*.fish
source $f
end
end
if test -f $plugin_dir/key_bindings.fish

View File

@ -21,7 +21,9 @@ let
# Source initialization code if it exists.
if test -d $plugin_dir/conf.d
source $plugin_dir/conf.d/*.fish
for f in $plugin_dir/conf.d/*.fish
source $f
end
end
if test -f $plugin_dir/key_bindings.fish