I 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.
Using GNU Stow to manage your dotfiles (2012)
11–20 of 116 posts
Re: Using GNU Stow to manage your dotfiles (2012)
#12I 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…
I've been logging each install as a markdown document with directions, and manually symlinking my dotfiles, but tiny scripts that do both are a great idea!
Re: Using GNU Stow to manage your dotfiles (2012)
#13I 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…
I've been logging each install as a markdown document with directions, and manually symlinking my dotfiles, but tiny scripts that do both are a great idea!
Re: Using GNU Stow to manage your dotfiles (2012)
#14Earlier quoted context omitted.
I've been logging each install as a markdown document with directions, and manually symlinking my dotfiles, but tiny scripts that do both are a great idea!
Yes, as soon as I have installed a program which I like and think is a "keeper", I write my setuplet script, usually by copying and pasting from the bash history.
Re: Using GNU Stow to manage your dotfiles (2012)
#15Earlier quoted context omitted.
Yes, as soon as I have installed a program which I like and think is a "keeper", I write my setuplet script, usually by copying and pasting from the bash history.
I am not an expert in Ansible, or any other software of the kind, but I think this is one of the easier use-cases of such a program. I wrote an ansible script to compile emacs from source, after some initial configuration, and it serves me pretty well.
Ansible, for server/OS setup. Things run by init/systemd, involving anything outside of $HOME basically
Backup, using borgmatic. I use this to restore most things in $HOME, except random dotfiles. My documents, my checked out git repos, etc.
Script "setuplets". These I run on demand, to set up my environment piece by piece. Perhaps I do not want to restore my programming environment just because I want to have my custom prompt on a host, for example.
Finding the balance between these have been difficult. What bootstraps what, and especially, how to handle credentials. My backup is encrypted, but how would I make sure I had the keys to restore it? I could restore it from my pass password store, but how would I get the gnupg keys in place first? I have not solved this completely satisfactorily yet
Re: Using GNU Stow to manage your dotfiles (2012)
#16I ended up switching to https://www.chezmoi.io/, after learning about it here on HN.
Re: Using GNU Stow to manage your dotfiles (2012)
#17So I added a note to myself into my .bashrc about this command, and patted myself on the back. The next time I reinstalled Linux, I couldn't remember the name, but I remembered that I wrote a note to myself about it. So opened up my .bashrc, and... I didn't feel so smart.
Re: Using GNU Stow to manage your dotfiles (2012)
#18Re: Using GNU Stow to manage your dotfiles (2012)
#19[0] https://github.com/podiki/dot.me/
[1] https://web.archive.org/web/20190924102437/https://expoundit...
[2] https://orgmode.org/manual/Working-with-Source-Code.html
Re: Using GNU Stow to manage your dotfiles (2012)
#20cd ~
git init
git remote add origin [URL]
git fetch
git checkout -f master