1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Vonfry 2025-03-26 23:08:18 -07:00 committed by GitHub
commit d1da53943b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View file

@ -551,15 +551,29 @@ in {
set -l plugin_dir ${plugin.src}
# Set paths to import plugin components
if test -d $plugin_dir/share/fish/vendor_functions.d
set fish_function_path $fish_function_path[1] $plugin_dir/share/fish/vendor_functions.d $fish_function_path[2..-1]
end
if test -d $plugin_dir/functions
set fish_function_path $fish_function_path[1] $plugin_dir/functions $fish_function_path[2..-1]
end
if test -d $plugin_dir/share/fish/vendor_completions.d
set fish_complete_path $fish_complete_path[1] $plugin_dir/share/fish/vendor_completions.d $fish_complete_path[2..-1]
end
if test -d $plugin_dir/completions
set fish_complete_path $fish_complete_path[1] $plugin_dir/completions $fish_complete_path[2..-1]
end
# Source initialization code if it exists.
if test -d $plugin_dir/share/fish/vendor_conf.d
for f in $plugin_dir/share/fish/vendor_conf.d/*.fish
source $f
end
end
if test -d $plugin_dir/conf.d
for f in $plugin_dir/conf.d/*.fish
source $f

View file

@ -8,15 +8,29 @@ let
set -l plugin_dir ${fooPluginSrc}
# Set paths to import plugin components
if test -d $plugin_dir/share/fish/vendor_functions.d
set fish_function_path $fish_function_path[1] $plugin_dir/share/fish/vendor_functions.d $fish_function_path[2..-1]
end
if test -d $plugin_dir/functions
set fish_function_path $fish_function_path[1] $plugin_dir/functions $fish_function_path[2..-1]
end
if test -d $plugin_dir/share/fish/vendor_completions.d
set fish_complete_path $fish_complete_path[1] $plugin_dir/share/fish/vendor_completions.d $fish_complete_path[2..-1]
end
if test -d $plugin_dir/completions
set fish_complete_path $fish_complete_path[1] $plugin_dir/completions $fish_complete_path[2..-1]
end
# Source initialization code if it exists.
if test -d $plugin_dir/share/fish/vendor_conf.d
for f in $plugin_dir/share/fish/vendor_conf.d/*.fish
source $f
end
end
if test -d $plugin_dir/conf.d
for f in $plugin_dir/conf.d/*.fish
source $f