Live data from Hacker News

Ask HN: Dotfiles Management Tools?

news.ycombinator.com

1–10 of 20 posts

Ask HN: Dotfiles Management Tools?

#1
My customized shell script isn't as robust as it should be and I don't want to reinvent an inferior version of what must surely already exist.

What tools would you recommend for managing dotfiles that are robust, doesn't have external dependencies, uses git and are idempotent?

I'd like something that manages directories of files (e.g. ~/.vim/ftplugin/) in sub-directories, as well as in $HOME. If the tool can deal with multiple systems (MacOS, CentOS, debian) then even better!

Thanks!

Re: Ask HN: Dotfiles Management Tools?

#5

Gnu Stow is something I've often heard referenced. Disclaimer: I have no experience using it.

I've been using GNU Stow (with Git) for the past month to sync some of my dotfiles between two laptops (Mac and Linux). It took 10 minutes to get comfortable with it and it works well for me.

Re: Ask HN: Dotfiles Management Tools?

#6

Gnu Stow is something I've often heard referenced. Disclaimer: I have no experience using it.

+1 For stow ("a symlink farm manager")

Simple usecase:

  cd ~
  mkdir -p dotfiles && cd dotfiles
  mkdir -p bash && cd bash
  touch .bashrc
  cd ~
  stow bash  # Deploys ~/.bashrc symlinked from ~/dotfiles/bash/
  # More packages, version control:
  cd ~/dotfiles
  git init && git commit -am "Initial commit"
  mkdir -p ~/dotfiles/git/
  touch ~/dotfiles/git/.gitconfig
  # deploy git package
  cd ~ && stow git
  # revert bash "package deployment"
  stow -D bash
I've gone a bit overboard myself (many packages, litterate programming declaration of emacs config, Vagrant VM with Ansible deployment etc), see https://github.com/OverkillGuy/jibyconf
Post reply on HN