Compare commits
No commits in common. "fb1ae514b3ebcae38f337fc3ea3c145029566824" and "f379471a5fac58dc74dae45355c6bbc39766f4ea" have entirely different histories.
fb1ae514b3
...
f379471a5f
3 changed files with 6 additions and 17 deletions
2
.stow-rename
Normal file
2
.stow-rename
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
config => .config
|
||||||
|
local => .local
|
|
@ -5,7 +5,6 @@
|
||||||
global_ignore=(
|
global_ignore=(
|
||||||
'\.git.*'
|
'\.git.*'
|
||||||
'README\.md'
|
'README\.md'
|
||||||
'\.editorconfig'
|
|
||||||
'\.stow-no-folding'
|
'\.stow-no-folding'
|
||||||
'\.stow-rename'
|
'\.stow-rename'
|
||||||
'\.mypy_cache'
|
'\.mypy_cache'
|
||||||
|
@ -16,28 +15,16 @@ bootstrap() {
|
||||||
echo 'Bootstrapping your dotfiles...' >&2
|
echo 'Bootstrapping your dotfiles...' >&2
|
||||||
mkdir -p $DOTFILES
|
mkdir -p $DOTFILES
|
||||||
touch $DOTFILES/.stow
|
touch $DOTFILES/.stow
|
||||||
if (( $+commands[stow] )); then
|
if (( ! $+commands[stow] )); then
|
||||||
local stow_version=${"$(stow -V)"#stow*version }
|
|
||||||
if [[ $stow_version != 2.3.2-fixbug56727 ]]; then
|
|
||||||
echo "GNU Stow is installed, but version $stow_version is bugged." >&2
|
|
||||||
echo 'See https://github.com/aspiers/stow/issues/33 for info.' >&2
|
|
||||||
echo 'Will fetch patched version of Stow...' >&2
|
|
||||||
install-custom-gnu-stow || return $?
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo 'GNU Stow is not installed, fetching it...' >&2
|
echo 'GNU Stow is not installed, fetching it...' >&2
|
||||||
install-custom-gnu-stow || return $?
|
clone-one stow || return $?
|
||||||
|
STOW=$DOTFILES/stow/local/bin/stow
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clone dots git vim zsh || return $?
|
clone dots git vim zsh || return $?
|
||||||
link
|
link
|
||||||
}
|
}
|
||||||
|
|
||||||
install-custom-gnu-stow() {
|
|
||||||
clone-one stow || return $?
|
|
||||||
STOW=$DOTFILES/stow/dot-local/bin/stow
|
|
||||||
}
|
|
||||||
|
|
||||||
clone() {
|
clone() {
|
||||||
echo "Requested packages: $argv" >&2
|
echo "Requested packages: $argv" >&2
|
||||||
for package in $argv; do
|
for package in $argv; do
|
||||||
|
@ -76,7 +63,7 @@ link() {
|
||||||
|
|
||||||
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 --dotfiles -d $DOTFILES -t ~ --ignore=${^global_ignore} $packages
|
$STOW -d $DOTFILES -t ~ --ignore=${^global_ignore} $packages
|
||||||
}
|
}
|
||||||
|
|
||||||
process-stow-no-folding() {
|
process-stow-no-folding() {
|
Loading…
Reference in a new issue