Move completions/fisher.fish creation to the top of the function.

This commit is contained in:
Jorge Bucaran 2016-04-26 02:32:09 +09:00
parent e753630832
commit f6c702d30b

View File

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