From b60ea9ee8e24536df4e41ce9d5d1d1b9112d9226 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Tue, 26 Apr 2016 02:32:09 +0900 Subject: [PATCH] Move completions/fisher.fish creation to the top of the function. --- fisher.fish | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fisher.fish b/fisher.fish index e19ba95..1880a32 100644 --- a/fisher.fish +++ b/fisher.fish @@ -52,6 +52,13 @@ function fisher return 1 end + set -l completions "$fish_config/completions/fisher.fish" + + if test ! -e "$completions" + __fisher_completions_write > "$completions" + source "$completions" + end + set -g __fisher_stdout /dev/stdout set -g __fisher_stderr /dev/stderr @@ -266,13 +273,6 @@ function fisher end end end - - set -l completions "$fish_config/completions/fisher.fish" - - if test ! -e "$completions" - __fisher_completions_write > "$completions" - source "$completions" - end end function __fisher_install