Load completions after functions in __fisher_plugin_enable. #fin/issues/28

pull/445/head
Jorge Bucaran 9 years ago
parent 8f9898dc25
commit 9ad788a6c0
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -711,14 +711,6 @@ function __fisher_plugin_enable -a path
command ln -sf "$file" "$fish_config/functions/$base"
end
for file in $path/completions/*.fish
set -l base (basename "$file")
set -l target "$fish_config/completions/$base"
command ln -sf "$file" "$target"
builtin source "$target" ^ /dev/null
end
for file in $path/{functions/*,}*.fish
set -l base (basename "$file")
@ -763,6 +755,14 @@ function __fisher_plugin_enable -a path
end
end
for file in $path/completions/*.fish
set -l base (basename "$file")
set -l target "$fish_config/completions/$base"
command ln -sf "$file" "$target"
builtin source "$target" ^ /dev/null
end
return 0
end

Loading…
Cancel
Save