aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-15 00:48:00 -0700
committerGravatar Tom Willemse2020-04-15 00:48:00 -0700
commitcbf581acfa2d36374f6f0f53b26c5a0b4c96dfbc (patch)
tree88a1ae86dc7b36261e445267a34cde5521aa8a01
parentc07ca71f0aca9c51a913b36e40542e32a7ec5dcc (diff)
downloadnew-dotfiles-cbf581acfa2d36374f6f0f53b26c5a0b4c96dfbc.tar.gz
new-dotfiles-cbf581acfa2d36374f6f0f53b26c5a0b4c96dfbc.zip
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.
-rw-r--r--.stowrc4
-rw-r--r--GNUmakefile2
-rwxr-xr-xstow/usr/bin/stow-home6
3 files changed, 5 insertions, 7 deletions
diff --git a/.stowrc b/.stowrc
new file mode 100644
index 0000000..05cea65
--- /dev/null
+++ b/.stowrc
@@ -0,0 +1,4 @@
+--target $HOME
+--ignore GNUmakefile
+--ignore org
+--ignore .dir-locals.el
diff --git a/GNUmakefile b/GNUmakefile
index d7c6028..b6bec53 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,7 +1,7 @@
include dotfiles.mk
MODULES=xmodmap emacs compton cower mowedline
-STOW=stow/usr/bin/stow-home
+STOW=stow
.PHONY: all clean $(MODULES) zsh
diff --git a/stow/usr/bin/stow-home b/stow/usr/bin/stow-home
deleted file mode 100755
index 85d6c24..0000000
--- a/stow/usr/bin/stow-home
+++ /dev/null
@@ -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" "$@"