fish_prompt fallback check needs to be done only once

This commit is contained in:
Jorge Bucaran 2020-11-05 14:24:34 +09:00
parent 83608c228a
commit fa598b1ed6
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

View File

@ -150,9 +150,10 @@ function fisher -a cmd -d "fish plugin manager"
command rm -rf $files $data
command rm -df (string split --right --max=1 / $data)[1] 2>/dev/null
functions -e (string replace --all --regex '^.*/|\.fish$' "" $files)
functions -q fish_prompt || source $__fish_data_dir/functions/fish_prompt.fish
end
functions -q fish_prompt || source $__fish_data_dir/functions/fish_prompt.fish
source $fisher_path/completions/fisher.fish 2>/dev/null
_fisher_list >$fish_plugins