mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-08 19:53:41 +08:00
b9c1bd9576
destroy was broken because of a premature refresh. (giving false hang behaviour)
18 lines
377 B
Fish
18 lines
377 B
Fish
function omf.destroy -d "Remove Oh My Fish"
|
|
echo (omf::dim)"Removing Oh My Fish..."(omf::off)
|
|
|
|
for pkg in (basename $OMF_PATH/pkg/*)
|
|
omf.remove_package $pkg >/dev/null ^&1
|
|
end
|
|
|
|
if test -e "$HOME/.config/fish/config.copy"
|
|
mv "$HOME/.config/fish/config".{copy,fish}
|
|
end
|
|
|
|
if test "$OMF_PATH" != "$HOME"
|
|
rm -rf "$OMF_PATH"
|
|
end
|
|
|
|
exec fish < /dev/tty
|
|
end
|