From 9ad788a6c0a8203cc00cd5a6bf5976cc82b1ccaa Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 13 May 2016 15:13:24 +0900 Subject: [PATCH] Load completions after functions in __fisher_plugin_enable. #fin/issues/28 --- fisher.fish | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fisher.fish b/fisher.fish index b999054..81f9351 100644 --- a/fisher.fish +++ b/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