5 ms·
I erased my disk before installing El Capitan. I wanted to force myself into good habits. I'm currently learning how to manage all my dotfiles, vim plugins etc
by chm 11y ago
I erased my disk before installing El Capitan. I wanted to force myself into good habits. I'm currently learning how to manage all my dotfiles, vim plugins etc with git. I'm not quite there yet however.
I read his article before erasing my disk, but found it way overkill for my needs. Depends on the user.
- ggsp 11y agoAny suggested reading to become a better person and manage dotfiles sanely?
- gknoy 11y agoI 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.
- Brajeshwar 11y agoThere are lots of articles written, samples, et al. One such simpler article that I read recently was http://www.anishathalye.com/2014/08/03/managing-your-dotfiles/ http://www.anishathalye.com/2014/08/03/managing-your-dotfile...
- leni536 11y agoI suggest that you pack them into a git repo and use GNU stow to deploy them.
- falcolas 11y agoStarted doing this myself, it's a fantastic solution to a common problem.
- chm 11y agoWhat I found the most useful for my use case are the git submodules documentation[1] and this blog post[2]. Read them and you'll have a basic setup in no time. Some people want to automate everything and have modular configurations depending on the environment. That's just a bit more involved, but not much, and there are plenty of tools to help you with that. I have just pushed my dotvim folder to github if you want to take a look[3]. [1]: https://git-scm.com/book/en/v2/Git-Tools-Submodules https://git-scm.com/book/en/v2/Git-Tools-Submodules [2]: http://blog.smalleycreative.com/tutorials/using-git-and-github-to-manage-your-dotfiles/ http://blog.smalleycreative.com/tutorials/using-git-and-gith... [3]: https://github.com/belmarca/dotvim https://github.com/belmarca/dotvim