-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·51 lines (41 loc) · 1.64 KB
/
setup.sh
File metadata and controls
executable file
·51 lines (41 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
echo "Setting up dotfiles..."
# Check if we're on macOS
if [[ "$OSTYPE" != "darwin"* ]]; then
echo "Error: macOS required"
exit 1
fi
# Install Homebrew if needed
if ! command -v brew &> /dev/null; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add Homebrew to PATH for this session
if [[ -f "/opt/homebrew/bin/brew" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [[ -f "/usr/local/bin/brew" ]]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
fi
# Install dependencies
echo "Installing packages..."
brew install btop zoxide git go fastfetch opencode stow fzf docker oven-sh/bun/bun || echo "Some packages may already be installed"
echo "Installing cask applications..."
brew install --cask zen-browser visual-studio-code alt-tab raycast kitty discord figma lm-studio || echo "Some apps may already be installed"
# Install zathura from the correct tap
echo "Installing zathura..."
brew tap zathura-pdf-poppler/zathura-pdf-poppler || echo "Tap may already be added"
brew install zathura zathura-pdf-poppler || echo "Zathura may already be installed"
# Install Oh My Zsh if needed
if [[ ! -d "$HOME/.oh-my-zsh" ]]; then
echo "Installing Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended &> /dev/null
fi
# Navigate to dotfiles directory
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DOTFILES_DIR"
# Create symlinks
echo "Creating symlinks..."
stow .
echo "✓ Setup complete"
echo "Run: source ~/.zshrc"