Discussion about this post

User's avatar
Clive F's avatar

Have you come across Gnu Stow (https://www.gnu.org/software/stow/) ? It's a tool to help with this exact problem. It's described as a "symlink farm manager": basically you move your existing dotfiles - or any other file/directory in your home director - to (say) ~/dotfiles, and then use Stow to create all the symlinks from where they normally live. If you have ~/dotfiles/randomdir/foo.sh then it will create a symlink from ~/randomdir/foo.sh.

Good explanation here: https://tamerlan.dev/how-i-manage-my-dotfiles-using-gnu-stow/

Then you can put ~/dotfiles in a Git repo, and off you go. I used it a week ago to set up the dotfiles and my standard scripts on my new Framework laptop and it worked perfectly. (Very pleased with the Framework laptop btw, in case that was still on your mind)

Expand full comment

No posts

Ready for more?