mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-10 04:53:56 +08:00
0359ba047c
Per conversation with @bpinto in Gitter. There's no need for two separate directories. You don't have a `.git` and `.git-custom` folder, you just put your config in `.git` :) The most straightforward interpretation of XDG basedir spec is that user configuration for omf would go in `~/.config/omf`, so let's put it there. The only question is whether omf-generated config (i.e. the `theme` file) should go there as well. By analogy with git, programmatically generated config should probably be merged in with user config. This also makes it so when a user clones their dotfiles to a new machine, both kinds of settings come with it.
16 lines
351 B
Fish
16 lines
351 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 "$OMF_PATH" != "$HOME"
|
|
rm -rf "$OMF_PATH"
|
|
end
|
|
|
|
exec fish < /dev/tty
|
|
end
|