aboutsummaryrefslogtreecommitdiffstats
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
parent54abce564fa2ce215df74066102f68ed8ba0164a (diff)
downloaddotfiles-f311c01a1b2672ab2c724674de8022e83988545e.tar.gz
dotfiles-f311c01a1b2672ab2c724674de8022e83988545e.zip
reorganize
-rw-r--r--apps/Brewfile (renamed from Brewfile)0
-rwxr-xr-xbootstrap.sh35
-rw-r--r--git/.gitconfig (renamed from .gitconfig)0
-rwxr-xr-xmacos/macos (renamed from .macos)0
-rw-r--r--tmux/tmux.conf (renamed from .config/tmux/tmux.conf)0
-rw-r--r--zsh/.zshrc (renamed from .zshrc)0
-rw-r--r--zsh/aliases.zsh (renamed from .aliases.zsh)0
-rwxr-xr-xzsh/extras.zsh (renamed from .extras.zsh)0
-rw-r--r--zsh/path.zsh (renamed from .path.zsh)0
9 files changed, 33 insertions, 2 deletions
diff --git a/Brewfile b/apps/Brewfile
index 340fcec..340fcec 100644
--- a/Brewfile
+++ b/apps/Brewfile
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."
diff --git a/.gitconfig b/git/.gitconfig
index 017cd90..017cd90 100644
--- a/.gitconfig
+++ b/git/.gitconfig
diff --git a/.macos b/macos/macos
index 77b3d29..77b3d29 100755
--- a/.macos
+++ b/macos/macos
diff --git a/.config/tmux/tmux.conf b/tmux/tmux.conf
index ca1ab51..ca1ab51 100644
--- a/.config/tmux/tmux.conf
+++ b/tmux/tmux.conf
diff --git a/.zshrc b/zsh/.zshrc
index bdc70cc..bdc70cc 100644
--- a/.zshrc
+++ b/zsh/.zshrc
diff --git a/.aliases.zsh b/zsh/aliases.zsh
index ebda55c..ebda55c 100644
--- a/.aliases.zsh
+++ b/zsh/aliases.zsh
diff --git a/.extras.zsh b/zsh/extras.zsh
index 0647ca0..0647ca0 100755
--- a/.extras.zsh
+++ b/zsh/extras.zsh
diff --git a/.path.zsh b/zsh/path.zsh
index ef41549..ef41549 100644
--- a/.path.zsh
+++ b/zsh/path.zsh