Live data from Hacker News

Using GNU Stow to manage your dotfiles

brandon.invergo.net

41–50 of 73 posts

Re: Using GNU Stow to manage your dotfiles

#42
post #26

Does anyone else use RCS [1] for this? [1] https://www.gnu.org/software/rcs/

WAT. Are you trolling us, or are you that uninformed about VCS history? Giving you the benefit of the doubt, just learn and use git[1]. Yes, there are things about the UI that suck. But the underlying machinery and power it provides is unparalleled. RCS, in short, is that horrible feet-killing pair of boots that made you think you hated , when in fact it was just frustration with sub-par equipment. [1] If you need to…

[deleted]

Re: Using GNU Stow to manage your dotfiles

#46

Can Stow do hardlinks? The reason I ask is that IIRC systemd shits a brick if your service files are symlinks. Conversely, I have a script that does this: https://github.com/radiosilence/dotfiles/blob/master/relink All I have to do is maintain a MANIFEST file.

uAs I ubderstood, systemd only uses symlinks. Any time you enable a service, systemd executes ln -s ..systemd.. ...service ...

Re: Using GNU Stow to manage your dotfiles

#47
post #22
post #9

Earlier quoted context omitted.

I also keep my whole homedir in git, and it's great. My approach isn't to .gitignore, because I want to ignore almost everything -- I just add and commit things when I want to track them. One of my many git aliases[1] is 'git sn' for showing status without untracked files; this helps when dealing with my homedir: status --short --branch --untracked=no [1] https://github.com/cespare/dotfiles/blob/master/.gitconfig#L..…

I have my homedir in git too and also ignore just about everything. I ended up using gitignore as a whitelist instead of a blacklist, e.g.: /* !/.gitignore !/.gitmodules !/.gitconfig !/.zshrc !/.zshenv !/.zsh !/.tmux.conf !/.vimrc !/.vim

I have a close setup. It just needs a little trick to add subdirectories :

  /*
  !/.emacs
  !/.emacs.d/
  /.emacs.d/*
  !/.emacs.d/themes/
  !/.emacs.d/functions/
You can check my .gitignore here [0].

[0] https://raw.github.com/dgellow/home/master/.gitignore

Re: Using GNU Stow to manage your dotfiles

#49
I wasn't clear to me from the article alone how GNU Stow decides where to put the files. Looking it up in the manfile stow uses the parent directory of the "stow directory" by default.

You can change this behaviour using the --target and --dir options, where setting --dir will set the target dir to the parent of what you set for --dir.

I don't think it's possible to configure a target in the package itself, as far as I can see from reading the man page.

Re: Using GNU Stow to manage your dotfiles

#50
post #2

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 I totally disagree. I love having much of my home directory in git. I have a .gitiignore for the stuff I don't want in there, but the rest. Ahhhhh, so nice to be able to clone somewhere else and use.

Be careful, this is how devs expose private ssh keys.
Post reply on HN