fish_prompt fallback check needs to be done only once

pull/627/head
Jorge Bucaran 4 years ago
parent 83608c228a
commit fa598b1ed6
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

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

Loading…
Cancel
Save