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. # Source initialization code if it exists.
if test -d $plugin_dir/conf.d 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 end
if test -f $plugin_dir/key_bindings.fish if test -f $plugin_dir/key_bindings.fish

View file

@ -21,7 +21,9 @@ let
# Source initialization code if it exists. # Source initialization code if it exists.
if test -d $plugin_dir/conf.d 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 end
if test -f $plugin_dir/key_bindings.fish if test -f $plugin_dir/key_bindings.fish