mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-24 22:51:49 +02:00
Source plugin completions on install and update
This commit is contained in:
parent
3e5b263785
commit
7ed1de7e56
|
@ -170,7 +170,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||
string unescape "Installing \x1b[1m$plugin\x1b[22m"
|
||||
printf " %s\n" $$plugin_files_var
|
||||
|
||||
for file in (string match --regex -- '.+/(?:functions|conf\.d)/[^/]+\.fish$' $$plugin_files_var)
|
||||
for file in (string match --regex -- '.+/[^/]+\.fish$' $$plugin_files_var)
|
||||
source $file
|
||||
if set --local name (string replace --regex -- '.+conf\.d/([^/]+)\.fish$' '$1' $file)
|
||||
emit {$name}_$event
|
||||
|
|
Loading…
Reference in a new issue