aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2024-12-27 14:37:58 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2024-12-27 14:38:11 +0100
commitf311c01a1b2672ab2c724674de8022e83988545e (patch)
tree6ba37deb89746ea70ea022c15b124e975e33b953 /bootstrap.sh
parent54abce564fa2ce215df74066102f68ed8ba0164a (diff)
downloaddotfiles-f311c01a1b2672ab2c724674de8022e83988545e.tar.gz
dotfiles-f311c01a1b2672ab2c724674de8022e83988545e.zip
reorganize
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh35
1 files changed, 33 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index e190a7d..368ef9d 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,4 +1,35 @@
#!/bin/bash
-# Install Oh My Zsh
-sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
+# Install Homebrew if not installed
+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
+
+# 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
+sh macos/macos
+
+# Setup Zsh
+if [ ! -d "$HOME/.zsh-repos/znap" ]; then
+ git clone --depth 1 https://github.com/marlonrichert/zsh-snap.git ~/.zsh-repos/znap
+fi
+
+echo "Setup complete! Please restart your terminal."