Contribution Request: Another small plugin for core (details inside)
See original GitHub issueHello again, @anishathalye 👋
I recently finished up a small plugin locally for my own use and it’s pretty darn useful for a particular use-case that I think might also be useful for a large portion of other users.
This issue is just to gauge your interest in adding it into core (after a thorough code review, of course).
The gist
The plugin is called merge
, and it is used like this (subject to changes):
- merge:
~/dest: source
As you can see, it works very much like link
, however, the difference is that instead of linking dest
to source
, it “merges” the contents of source
into dest
(with symlinks dest -> src
).
The salient use-case for this is with dotfiles belonging in the $XDG_CONFIG_HOME
or ~/.config
directory.
Instead of having to do this:
- link:
~/.config/foo: config/foo
~/.config/bar: config/bar
~/.config/baz: config/baz
You instead only have to do this:
- merge:
~/.config: config
Ah, much better 😄
Anyway, I just finished a decent working implementation last night for my own personal use that so far works nicely for my needs.
Let me know if you might be interested in a PR for this. If not, no hard feelings. 👍
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top GitHub Comments
Finally got around to pushing the plugin to github…
Here’s a link if you’re interested in checking it out… I run it several times in my configuration and it’s working pretty well for me.
Looks like you guys went with globbing. Closing this as irrelevant.