mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Tell users they may remove XDG_DATA_HOME after migrating to 4.1
This commit is contained in:
parent
f6f2b5d149
commit
285fc352b7
1 changed files with 6 additions and 5 deletions
11
fisher.fish
11
fisher.fish
|
@ -198,9 +198,10 @@ if functions --query _fisher_self_update || test -e $__fish_config_dir/fishfile
|
||||||
_fisher_migrate >/dev/null 2>/dev/null
|
_fisher_migrate >/dev/null 2>/dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
if functions --query _fisher_list # 4.0
|
if functions --query _fisher_list && ! set --query _fisher_4_1_migration_done
|
||||||
if ! set --query _fisher_4_1_migration_done
|
set --global _fisher_4_1_migration_done
|
||||||
set --global _fisher_4_1_migration_done
|
fisher update >/dev/null 2>/dev/null
|
||||||
fisher update >/dev/null 2>/dev/null
|
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||||
end
|
test -e $XDG_DATA_HOME/fisher \
|
||||||
|
&& echo (set_color --bold red)"fisher: XDG_DATA_HOME/fisher has been deprecated, please remove it: rm -rf $XDG_DATA_HOME/fisher"(set_color normal)
|
||||||
end
|
end
|
Loading…
Reference in a new issue