3 ms·
I like to make a repo, and then have subfolders for each thing -- emacs configs, bash configs, etc -- and then symlink them in. Bonus would be to write a script
by gknoy 11y ago
I like to make a repo, and then have subfolders for each thing -- emacs configs, bash configs, etc -- and then symlink them in. Bonus would be to write a script that automated doing the symlinks (e.g. ~/.bashrc -> dev/gk-config/bash/.bashrc , ~/bin -> dev/gk-config/bin), which I have yet to do.
Then, commit changes regularly. I have no idea how to handle multiple __different__ machines well, though.
- deleted 11y ago[deleted]
- vinceguidry 11y agoGNU Stow does the symlinking for you. https://www.gnu.org/software/stow/ https://www.gnu.org/software/stow/ What I do with different machines, (just OSX / Ubuntu atm) is a bash function to check which type of system I'm on and conditionally execute .profile / .bashrc code on that basis. Also I look for a .bashrc-local file and source it if present. That lets me add truly machine-local code.