oh-my-fish/pkg/omf/cli/omf.destroy.fish
jeremiejig b9c1bd9576 Fixing how omf remove work, and omf.remove_package
destroy was broken because of a premature refresh. (giving false hang
behaviour)
2015-09-26 22:32:10 +02:00

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