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

This commit is contained in:
Jorge Bucaran 2016-05-13 15:13:24 +09:00
parent 8f9898dc25
commit 9ad788a6c0
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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