mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 15:14:26 +00: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:
parent
a7cdfaa325
commit
8b82f52e75
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue