Set global ignores when running Stow, to simplify package defs
This commit is contained in:
parent
8bfca07760
commit
f00842c295
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1 @@
|
||||||
^/\.git.*
|
|
||||||
^/README\.md
|
|
||||||
^/site.*
|
^/site.*
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# <a href="https://dots.00dani.me/README">WHAT IS THIS</a>
|
# <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'() {
|
'bootstrap'() {
|
||||||
echo 'Bootstrapping your dotfiles...' >&2
|
echo 'Bootstrapping your dotfiles...' >&2
|
||||||
mkdir -p $DOTFILES
|
mkdir -p $DOTFILES
|
||||||
|
@ -53,7 +62,7 @@
|
||||||
|
|
||||||
for nofold in $DOTFILES/${^packages}/.stow-no-folding(N); process-stow-no-folding $nofold
|
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'() {
|
'process-stow-no-folding'() {
|
||||||
|
|
Loading…
Reference in a new issue