mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
20 lines
426 B
Fish
20 lines
426 B
Fish
function omf_destroy -d "Remove Oh My Fish"
|
|
echo (omf::dim)"Removing Oh My Fish..."(omf::off)
|
|
|
|
omf_remove_package (basename $OMF_PATH/pkg/*) >/dev/null ^&1
|
|
|
|
if test -e "$HOME/.config/fish/config.copy"
|
|
mv "$HOME/.config/fish/config".{copy,fish}
|
|
end
|
|
|
|
if test (basename "$OMF_CONFIG") = "omf"
|
|
rm -rf "$OMF_CONFIG"
|
|
end
|
|
|
|
if test "$OMF_PATH" != "$HOME"
|
|
rm -rf "$OMF_PATH"
|
|
end
|
|
|
|
exec fish < /dev/tty
|
|
end
|