justone / dfm

dotfiles manager
http://endot.org/projects/#dfm
Other
122 stars 18 forks source link

Recurse by default #41

Open bes-internal opened 1 year ago

bes-internal commented 1 year ago

This scenario for example:

$ dfm import .config/htop/htoprc                                                                            
ERROR: file .config/htop/htoprc is in a subdirectory that is not tracked, consider using 'dfm import .config'. 

But $ dfm import .config add and commit all tree and all files. And wont add .config/htop too. Ok, we can create and add this path and file in manual mode. But we need add "recurse" in .dfminstall to each subdirs in tree path line by line with recurse.

It seems that including a single file from subdirectories (and then inject when dfm install) is more common than replacing an entire directory. We can recurse by default and add "direct" (may be not perfect) keyword for .dfminstall.