> but many/most dotfiles reside at the top-level of your home directory, where it wouldn't be a good idea to initialize a VCS repository. Right. Which is why I use git with a workspace detached from the git directory. The git directory is in ~/dotfiles/.git, with "git config core.worktree ~", and I set an alias "dgit=git --git-dir ~/dotfiles/.git". The advantage of this method is that there are no symlinks to maintai…
The one thing I like about stow is that I can choose to only add configurations that make sense for the machine I am using. If don't have a certain application, I don't 'stow' the configuration for that application in my home directory.
Using GNU Stow to manage your dotfiles
61–69 of 69 posts
Re: Using GNU Stow to manage your dotfiles
#62RCS is a version control system that is useful for individual files which must remain in a specific location.
Re: Using GNU Stow to manage your dotfiles
#63Re: Using GNU Stow to manage your dotfiles
#64The fact is that most people are going to be reusing (and probably be better of) a lot of code from other well tested dotfiles. `fresh` lets you pick and choose what you want directly from other's repos in addition to adding whatever you want and produces a single bundle (or multiple if you need it).
As far as I can tell, its a self contained shell script and does not have any dependencies (if that is a concern). Its definitely worth checking out.
Re: Using GNU Stow to manage your dotfiles
#65This can also be done recursively: toplevel Makefile for a machine's configuration files calls the sub-makefiles that install apache, asterisk, openvpn configurations etc.
Re: Using GNU Stow to manage your dotfiles
#66> but many/most dotfiles reside at the top-level of your home directory, where it wouldn't be a good idea to initialize a VCS repository. Right. Which is why I use git with a workspace detached from the git directory. The git directory is in ~/dotfiles/.git, with "git config core.worktree ~", and I set an alias "dgit=git --git-dir ~/dotfiles/.git". The advantage of this method is that there are no symlinks to maintai…
1. There could be many "hg-dirs" for a one regular "workdir" (e.g. .hg_foo, .hg_bar, .hg_baz, ...)
2. There'd be a wrapper tool, that on any hg command would autodetect to which hg-dir any given affected file belongs, if already committed earlier (with ability to override the autodetection by hand, including for adding brand new files to the repo).
However, didn't care enough to try implementing this yet. Also, not quite sure how/whether it could work with git, given the existence of staging area.
(full story: http://stackoverflow.com/a/5789827/98528)
Re: Using GNU Stow to manage your dotfiles
#67I gave GNU Stow a try, but thought it did too much. Ended up using dotfiles ( https://pypi.python.org/pypi/dotfiles ). My dotfiles ( https://github.com/cjoelrun/dotfiles ). I handle system specific stuff in each config: OS checks in zsh, emacs, tmux configs. Allows me to move between OSX and Arch linux.
Not to argue with your experience, but it's hard to see how it could do less—it literally just creates a bunch of symlinks. (It seems to have grown a bunch of options since I last looked at it, but it seems that they can all be ignored if you want simplicity. (I've only ever used `-d`, `-t`, and `-D`.)
Re: Using GNU Stow to manage your dotfiles
#68 This is particularly useful for keeping track of system-wide and per-user installations of software built from source, but can also facilitate a more controlled approach to management of configuration files in the user's home directory, especially when coupled with version control systems.
(from https://www.gnu.org/software/stow), where "especially …" links to http://lists.gnu.org/archive/html/info-stow/2011-12/msg00000....(There's nothing wrong with re-discovering it, of course!)
Re: Using GNU Stow to manage your dotfiles
#69A while back I got very interested in cleaning up my configuration files. I wanted to figure out out a way to store all of the configurations I use across multiple machines into a single repository, while at the same time not having to worry about symlinking and installing configurations for things I don't need on a particular machine. I looked at a lot of different things like Stow and homeshick and the like and rea…