Set global ignores when running Stow, to simplify package defs

This commit is contained in:
Danielle McLean 2023-10-16 12:39:04 +11:00
parent 8bfca07760
commit f00842c295
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1 @@
^/\.git.*
^/README\.md
^/site.*

View file

@ -1,6 +1,15 @@
#!/usr/bin/env zsh
# <a href="https://dots.00dani.me/README">WHAT IS THIS</a>
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'() {