You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found myself looking for a glorified symlink management tool (for dotfiles of course) a few weeks ago and came across your project.
I thought I would be able to add support for some behaviors I thought were missing from your implementation, but it turns out I didn't look close enough at how badm actually works to begin with. The baseline behavior actually didn't match up with how I manage my own dotfiles (using shitty 10+ year old bash scripts). So what I thought would be a few small changes turned more or less into a rewrite:
(after a certain point I just went ahead and renamed my fork since the baseline behavior is totally different now)
I thought you might be interested in a few bits though:
I have updated file move handling to rename files when they are detected as belonging to the same filesystem device.
If you think this is worth porting over to your own implementation you may find yourself wanting to support more than just linux as I have (i noticed you supported windows elsewhere).
The Config type now contains a vec of Dotfiles (thus supporting multiple dotfiles directories as well as multiple symlink directories).
I made use of types wrapping PathBuf to represent different types of directory and rely on initialization logic to more easily reason about paths in different places throughout the code
Hey there 👋
I found myself looking for a glorified symlink management tool (for dotfiles of course) a few weeks ago and came across your project.
I thought I would be able to add support for some behaviors I thought were missing from your implementation, but it turns out I didn't look close enough at how
badm
actually works to begin with. The baseline behavior actually didn't match up with how I manage my own dotfiles (using shitty 10+ year old bash scripts). So what I thought would be a few small changes turned more or less into a rewrite:(after a certain point I just went ahead and renamed my fork since the baseline behavior is totally different now)
I thought you might be interested in a few bits though:
Config
type now contains a vec ofDotfiles
(thus supporting multiple dotfiles directories as well as multiple symlink directories).PathBuf
to represent different types of directory and rely on initialization logic to more easily reason about paths in different places throughout the codeDotfilesDir
to represent dotfiles directoriesSymlinkDir
to represent symlink directoriesDotfilesPath
to represent relative dotfile pathsAnyway, thanks for the inspiration!
The text was updated successfully, but these errors were encountered: