Show HN: Manage Dotfiles with Stow
github.com
github.com
* It doesn’t require any configuration except for a ‘git init’ once & an alias (no symlinks, no b.s.)
* Files are version-controlled
* It’s unintrusive & universal: Because it doesn’t move any files or do anything special, there’s no surprising behavior, and you can try out a few files & stop using it with an rm -rf
* and on and on...
I strongly recommend eveybody trying out, no meed for configuration/mapping, and it’s easy to try out.
Admittedly, the chance of this happening does seem much lower when the git directory is in e.g. '~/.cfg/' while the work tree is $HOME, as the linked article proposes, than when it's set up with just a `git init` run in $HOME (because a `git clean` in a non-git-repository directory somewhere under $HOME won't cause any problems, because there will be no '--work-tree' argument). Still, at least to me, the symlink approach feels more comfortable.
I wonder, does anyone else have other reasons to prefer symbolic links?
By carefully managing scripts (mostly .zshrc) I can even use the same dotfiles between mac and linux.
What surprising behavior does it avoid?
Symlinks breaking perhaps? Anything else?
Disclaimer: I'm the author of chezmoi.
When I want to edit a file I type vim but I can't always remember what the name of the file. I use tab to cycle through the files but it doesn't show dot files. I then have to type . then tab through the files.
I find this pretty annoying so I remove the dots in my dotfile repo but then stow wasn't symlinking to the correct file since there should be a dot
Does anybody have a solution that lets you alias files but still use stow or an alternative?
I don't want to write my own script or change the behavior of tabbing through files to also show dot files.
And I still use it today even though we quickly switched to docker after realizing what mistake we made.
Anyhow this is the thing I use https://github.com/kairichard/lace together with my dotfile configuration https://github.com/kairichard/dotfiles/blob/master/.lace.yml
Has somebody used both, and still uses stow? What is your experience with both?
[1]: https://yadm.io/
Tested on GNU/Linux only. I appreciate feedback of OSX/BSD users and pull requests to increase its compatibility with systems other than GNU/Linux.
I prefer homeshick[0], a Bash port of homesick[1] (which is Ruby).
[0] https://github.com/andsens/homeshick [1] https://github.com/technicalpickles/homesick