aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 7a12335..430feb4 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -5,26 +5,28 @@ if ! command -v brew >/dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
-# Install GNU Stow
-brew install stow
-
# Install packages from Brewfile
cd apps && brew bundle
# Create symlinks using stow
cd ..
-stow zsh
-stow git
-stow apps
-stow config
-stow tmux
-stow nvim
+stow_folders=(zsh git starship tmux nvim)
+for folder in "${stow_folders[@]}"; do
+ echo "stow $folder"
+ stow -t $HOME -D $folder
+ stow -t $HOME $folder
+done
# Install TPM for tmux
if [ ! -d "$HOME/.tmux/plugins/tpm" ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
+# Configure macOS defaults with countdown
+echo "Setting MacOS defaults in 10 seconds. Press CTRL+C to abort..."
+sleep 10
+echo ""
+
# Configure macOS defaults
sh macos/macos