mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Move completions/fisher.fish creation to the top of the function.
This commit is contained in:
parent
4f9d628a9e
commit
b60ea9ee8e
1 changed files with 7 additions and 7 deletions
14
fisher.fish
14
fisher.fish
|
@ -52,6 +52,13 @@ function fisher
|
||||||
return 1
|
return 1
|
||||||
end
|
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_stdout /dev/stdout
|
||||||
set -g __fisher_stderr /dev/stderr
|
set -g __fisher_stderr /dev/stderr
|
||||||
|
|
||||||
|
@ -266,13 +273,6 @@ function fisher
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l completions "$fish_config/completions/fisher.fish"
|
|
||||||
|
|
||||||
if test ! -e "$completions"
|
|
||||||
__fisher_completions_write > "$completions"
|
|
||||||
source "$completions"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fisher_install
|
function __fisher_install
|
||||||
|
|
Loading…
Reference in a new issue