Use .stowrc instead of a bash wrapper around stow

The comment in ‘stow-home’ claims that ‘.stowrc’ doesn’t support variable
expansion. I don’t know if I couldn’t figure it out before or if stow has been
updated since then, but it seems to work fine now.
This commit is contained in:
Tom Willemse 2020-04-15 00:48:00 -07:00
parent c07ca71f0a
commit cbf581acfa
3 changed files with 5 additions and 7 deletions

4
.stowrc Normal file
View file

@ -0,0 +1,4 @@
--target $HOME
--ignore GNUmakefile
--ignore org
--ignore .dir-locals.el

View file

@ -1,7 +1,7 @@
include dotfiles.mk include dotfiles.mk
MODULES=xmodmap emacs compton cower mowedline MODULES=xmodmap emacs compton cower mowedline
STOW=stow/usr/bin/stow-home STOW=stow
.PHONY: all clean $(MODULES) zsh .PHONY: all clean $(MODULES) zsh

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
# Make stow always stow to my HOME directory. It's weird that this
# can't be done in a .stowrc, it doesn't support variable expansion.
/usr/bin/stow --target "$HOME" --ignore "GNUmakefile" --ignore "org" \
--ignore ".dir-locals.el" "$@"