From f00842c295f205f895dbfcdb09187adc2a84c74e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 16 Oct 2023 12:39:04 +1100 Subject: [PATCH] Set global ignores when running Stow, to simplify package defs --- .stow-local-ignore | 2 -- local/bin/dots | 11 ++++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.stow-local-ignore b/.stow-local-ignore index 858b01f..e9a22c1 100644 --- a/.stow-local-ignore +++ b/.stow-local-ignore @@ -1,3 +1 @@ -^/\.git.* -^/README\.md ^/site.* diff --git a/local/bin/dots b/local/bin/dots index ffb2f37..27364b5 100755 --- a/local/bin/dots +++ b/local/bin/dots @@ -1,6 +1,15 @@ #!/usr/bin/env zsh # WHAT IS THIS +global_ignore=( + '\.git.*' + 'README\.md' + '\.stow-no-folding' + '\.stow-rename' + '\.mypy_cache' + '\..*\.swp' +) + 'bootstrap'() { echo 'Bootstrapping your dotfiles...' >&2 mkdir -p $DOTFILES @@ -53,7 +62,7 @@ for nofold in $DOTFILES/${^packages}/.stow-no-folding(N); process-stow-no-folding $nofold - $STOW -d $DOTFILES -t ~ $packages + $STOW -d $DOTFILES -t ~ --ignore=${^global_ignore} $packages } 'process-stow-no-folding'() {