mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 10:11:14 +08:00
Only emit uninstall_* event on omf destroy
When calling `omf destroy`, the `bundle` file is completely erased because we are calling `remove_package` on each installed package. We don't want to erase that file, we just want to emit the event and later on remove the code, which is done with `rm -rf "$OMF_PATH"`.
This commit is contained in:
parent
2e5761ab38
commit
cf8a24deed
|
@ -2,7 +2,7 @@ function omf.destroy -d "Remove Oh My Fish"
|
||||||
echo (omf::dim)"Removing Oh My Fish..."(omf::off)
|
echo (omf::dim)"Removing Oh My Fish..."(omf::off)
|
||||||
|
|
||||||
for pkg in (basename $OMF_PATH/pkg/*)
|
for pkg in (basename $OMF_PATH/pkg/*)
|
||||||
omf.remove_package $pkg >/dev/null ^&1
|
emit uninstall_$pkg
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l fish_config $XDG_CONFIG_HOME/fish
|
set -l fish_config $XDG_CONFIG_HOME/fish
|
||||||
|
|
Loading…
Reference in New Issue
Block a user