Source plugin completions on install and update

pull/662/head
Jorge Bucaran 3 years ago
parent 3e5b263785
commit 7ed1de7e56
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -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…
Cancel
Save