mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00: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.
11 lines
220 B
Fish
11 lines
220 B
Fish
function omf_util_mkdir -a name
|
|
set -l name "$argv[1]"
|
|
if test -d "$OMF_CONFIG"
|
|
set name "$OMF_CONFIG/$name"
|
|
else if test -d "$OMF_PATH"
|
|
set name "$OMF_PATH/$name"
|
|
end
|
|
mkdir -p "$name"
|
|
echo $name
|
|
end
|