back

by jeffreyrogers·11y ago·view on hn ↗
I just have a dotfiles repo on github that I clone to any new computer I'm using. Then make a symbolic link between the dotfiles and the repo (`ln -s ~/dotfiles/.whatever ~/.whatever`).

Super simple.

1 comments
This is almost exactly the same strategy, only stow handles the symlinks for you, so you don't have to go through and `ln -s` all your files/directories. Your dotfiles still go in a git repo.
I put the "ln -s" commands in a shell script.

    git clone ... ~/.my-config
    ~/.my-config/setup-links
Done.

Some servers at work don't have Git installed (and certainly not Stow), so I rsync ~/.my-config from my workstation to my home directory. (There's little need for me to edit my .zshrc on a server.)