_fisher_list may not exit; just install fisher

This commit is contained in:
Jorge Bucaran 2020-11-10 22:40:43 +09:00
parent ac1b49b43b
commit 3f8552e200
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -178,9 +178,7 @@ end
if functions -q _fisher_self_update || test -e $__fish_config_dir/fishfile if functions -q _fisher_self_update || test -e $__fish_config_dir/fishfile
function _fisher_migrate function _fisher_migrate
function _fisher_complete function _fisher_complete
if not _fisher_list | string match --entire --regex --quiet -- jorgebucaran/fisher fisher install jorgebucaran/fisher 2>/dev/null
fisher install jorgebucaran/fisher 2>/dev/null
end
functions --erase _fisher_complete functions --erase _fisher_complete
end end
set -q XDG_DATA_HOME || set XDG_DATA_HOME ~/.local/share set -q XDG_DATA_HOME || set XDG_DATA_HOME ~/.local/share