Ask HN: What do you use to manage dotfiles?
71–80 of 97 posts
Re: Ask HN: What do you use to manage dotfiles?
#72Earlier quoted context omitted.
Interesting approach! Think you can provide us with a small working example, especially the 'deploy' part?
This is what I came up with over lunch. I'm going to try keeping all my dotfiles in one org file. I have an init hook that runs org-bable-tangle to re-export all the dotfiles after saving. ** Meta If you place the following code into your emacs init when saving the ~/.dotfiles.org file the dotfiles will all be exported. #+BEGIN_SRC emacs-lisp :tangle yes (defun dotfiles-hook () "If the current buffer is '~/.dotfiles.…
1. I run emacs-server, so the init file is run only during restarts OR when I manually load it from emacsclient.
2. Re-exporting all dotfiles seems rather redundant. I prefer to selectively export individual dotfiles only when I have made changes to it. That's why I was interested in the 'deploy' part.
I am not familiar enough with Babel, but it definitely seems to offer a more centralized way of managing my dotfiles. It's going into TODO.
Re: Ask HN: What do you use to manage dotfiles?
#73I use vcsh and my, I even wrote a blog post about it: https://srijanshetty.in/technical/vcsh-mr-dotfiles-nirvana/
Re: Ask HN: What do you use to manage dotfiles?
#74GNU stow and git, per this tutorial: http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to...
Re: Ask HN: What do you use to manage dotfiles?
#75I want to avoid vendor lock-in to something like chef for this. The idea is that everything is either defined in a tool-agnostic config file, and bootstrapping / installing / updating the dependencies is handled by simple shell scripts. Down the road I can always swap out the tooling (bower, config_curator, archutil) without updating code in my repos since state is defined as data.
I don't like syslinks or putting ~/ under git as I don't want my working tree to affect my dotfiles until I run an "install" command.
Re: Ask HN: What do you use to manage dotfiles?
#76I think no one has mentioned rcm[1]. I just maintain a private git repository cloned in .dotfiles in each system I own, and use rcm to set up symbolic links properly. It works pretty well with directories and lets you choose between creating and populating it with symlinks, or just symlinking the whole directory. For example, I can symlink the full .vim directory (including git submodules) and only link some files in…
Re: Ask HN: What do you use to manage dotfiles?
#77Re: Ask HN: What do you use to manage dotfiles?
#78cd ~ git init And add this to a .gitignore: # Ignore everything * # Except the dotfiles I explicitely want to share !.vimrc !.tmux.conf # ...
Re: Ask HN: What do you use to manage dotfiles?
#79Re: Ask HN: What do you use to manage dotfiles?
#80I use vcsh and my, I even wrote a blog post about it: https://srijanshetty.in/technical/vcsh-mr-dotfiles-nirvana/