Using GNU Stow to manage your dotfiles (2012)
brandon.invergo.net
Using GNU Stow to manage your dotfiles (2012)
1–10 of 116 posts
Re: Using GNU Stow to manage your dotfiles (2012)
#2Works quite well ... but I'm really, really ready for a rebuild of how Linux systems are built. I hope systemd-homed will deliver.
Imagine you could ssh into a machine with a flag that forwards your local config. Or even your local bin.
Re: Using GNU Stow to manage your dotfiles (2012)
#3Recently I’ve moved to NixOS and have been considering trying out Nix’s home-manager (mostly just out of curiosity - I’m perfectly happy with stow). If anyone has tried both stow and home-manager, I’d be interested to know your thoughts on how they compare.
Re: Using GNU Stow to manage your dotfiles (2012)
#4I use this technique, based on a bare git repo https://www.atlassian.com/git/tutorials/dotfiles Works quite well ... but I'm really, really ready for a rebuild of how Linux systems are built. I hope systemd-homed will deliver. Imagine you could ssh into a machine with a flag that forwards your local config. Or even your local bin.
Re: Using GNU Stow to manage your dotfiles (2012)
#5Re: Using GNU Stow to manage your dotfiles (2012)
#6I use this technique, based on a bare git repo https://www.atlassian.com/git/tutorials/dotfiles Works quite well ... but I'm really, really ready for a rebuild of how Linux systems are built. I hope systemd-homed will deliver. Imagine you could ssh into a machine with a flag that forwards your local config. Or even your local bin.
Re: Using GNU Stow to manage your dotfiles (2012)
#7Re: Using GNU Stow to manage your dotfiles (2012)
#8I use this technique, based on a bare git repo https://www.atlassian.com/git/tutorials/dotfiles Works quite well ... but I'm really, really ready for a rebuild of how Linux systems are built. I hope systemd-homed will deliver. Imagine you could ssh into a machine with a flag that forwards your local config. Or even your local bin.
You mean what we had with project Athena for decades? Or NFS mounted homework? Or plan 9?
It's a bit strange that now it's a Cloudflare trademark.
Re: Using GNU Stow to manage your dotfiles (2012)
#9I have found that managing dotfiles is not enough. The dotfiles serve no purpose without the software that uses them. My method is to write small scripts, I call them setuplets, that install the software and then symlink the dotfile to its master that I manage in git. In the simplest case, it is just a two line script in a directory, but I have one for each program, and a tool to select which I run when setting up a…
Re: Using GNU Stow to manage your dotfiles (2012)
#10I feel obligated to share my Bash script, dotfiles.sh[1], that accomplishes what Stow does, but with a few tweaks that I found particularly useful:
dotfiles.sh targets the user's home directory by default (i.e. stow -t $HOME).
dotfiles.sh never symlinks directories, only files (i.e. stow --no-folding). (This was the straw that broke the camel's back and made me roll my own script in the first place.)
dotfiles.sh makes backups of local config files and can restore them if you remove your symlinked version.
My script is quite old now, and I use it so seldomly I'm not convinced there aren't bugs. YMMV.