Skip to content

Commit

Permalink
make bootstrapping (and skipping tools) extensible
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Sep 2, 2024
1 parent 6810949 commit 4e0c702
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ function doIt() {
mkdir -v -p "${HOME}/Library/Application Support/Code/User"

echo "Linking files"
# skipping some tools because they are handled differently
local skip_tools=("vscode")
for tmp in "stow"/*; do
toolname=$(basename "${tmp}")
[[ "${toolname}" != "vscode" ]] && stow --dotfiles --dir "stow" "${toolname}" --target "${HOME}"
# shellcheck disable=SC2076
[[ ! "${skip_tools[*]}" =~ "${toolname}" ]] && stow --dotfiles --dir "stow" "${toolname}" --target "${HOME}"
done
stow --dotfiles --dir "stow" "vscode" --target "${HOME}/Library/Application Support/Code/User"

Expand Down

0 comments on commit 4e0c702

Please sign in to comment.