From 240106d9782a6f35d1cc0cf6ad56126d42bf5764 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 20:09:44 +0100 Subject: add zsh setup --- bootstrap.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'bootstrap.sh') 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 -- cgit v1.2.3