From cbf581acfa2d36374f6f0f53b26c5a0b4c96dfbc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 15 Apr 2020 00:48:00 -0700 Subject: [PATCH] Use .stowrc instead of a bash wrapper around stow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .stowrc | 4 ++++ GNUmakefile | 2 +- stow/usr/bin/stow-home | 6 ------ 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .stowrc delete mode 100755 stow/usr/bin/stow-home 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" "$@"