aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2024-12-27 20:09:44 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2024-12-27 20:09:44 +0100
commit240106d9782a6f35d1cc0cf6ad56126d42bf5764 (patch)
treed0293c643d82a7307e48a50b8ec4b7bfd6e7b408 /bootstrap.sh
parentb2bdcbc530b7482126118acd3ca2efcbf0014cdb (diff)
downloaddotfiles-240106d9782a6f35d1cc0cf6ad56126d42bf5764.tar.gz
dotfiles-240106d9782a6f35d1cc0cf6ad56126d42bf5764.zip
add zsh setup
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