mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Load completions after functions in __fisher_plugin_enable. #fin/issues/28
This commit is contained in:
parent
8f9898dc25
commit
9ad788a6c0
1 changed files with 8 additions and 8 deletions
16
fisher.fish
16
fisher.fish
|
@ -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…
Reference in a new issue