-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·90 lines (77 loc) · 3.58 KB
/
setup.sh
File metadata and controls
executable file
·90 lines (77 loc) · 3.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
DOTFILES="$HOME/Developer/personal/dotfiles"
echo "Setting up symlinks from $DOTFILES"
# Config directory symlinks
# alacritty
rm "$HOME/.config/alacritty" 2>/dev/null || true
ln -sf "$DOTFILES/alacritty" "$HOME/.config/alacritty"
# btop
rm "$HOME/.config/btop" 2>/dev/null || true
ln -sf "$DOTFILES/btop" "$HOME/.config/btop"
# ghostty
rm "$HOME/.config/ghostty" 2>/dev/null || true
ln -sf "$DOTFILES/ghostty" "$HOME/.config/ghostty"
# lazygit
rm "$HOME/.config/lazygit" 2>/dev/null || true
ln -sf "$DOTFILES/lazygit" "$HOME/.config/lazygit"
# nvim
rm "$HOME/.config/nvim" 2>/dev/null || true
ln -sf "$DOTFILES/nvim" "$HOME/.config/nvim"
# bat
rm "$HOME/.config/bat" 2>/dev/null || true
ln -sf "$DOTFILES/bat" "$HOME/.config/bat"
# opencode
ln -sf "$DOTFILES/opencode/opencode.json" "$HOME/.config/opencode/opencode.json"
ln -sf "$DOTFILES/ai/AGENTS.md" "$HOME/.config/opencode/AGENTS.md"
rm "$HOME/.config/opencode/agent" 2>/dev/null || true
ln -sf "$DOTFILES/opencode/agent" "$HOME/.config/opencode/agent"
rm "$HOME/.config/opencode/plugin" 2>/dev/null || true
ln -sf "$DOTFILES/opencode/plugin" "$HOME/.config/opencode/plugin"
rm "$HOME/.config/opencode/command" 2>/dev/null || true
ln -sf "$DOTFILES/opencode/command" "$HOME/.config/opencode/command"
rm "$HOME/.config/opencode/tool" 2>/dev/null || true
ln -sf "$DOTFILES/opencode/tool" "$HOME/.config/opencode/tool"
rm "$HOME/.config/opencode/skills" 2>/dev/null || true
ln -sf "$DOTFILES/ai/skills" "$HOME/.config/opencode/skills"
# claude code
ln -sf "$DOTFILES/claude/settings.json" "$HOME/.claude/settings.json"
ln -sf "$DOTFILES/claude/keybindings.json" "$HOME/.claude/keybindings.json"
ln -sf "$DOTFILES/ai/AGENTS.md" "$HOME/.claude/CLAUDE.md"
rm "$HOME/.claude/agents" 2>/dev/null || true
ln -sf "$DOTFILES/claude/agents" "$HOME/.claude/agents"
rm "$HOME/.claude/commands" 2>/dev/null || true
ln -sf "$DOTFILES/claude/commands" "$HOME/.claude/commands"
rm "$HOME/.claude/hooks" 2>/dev/null || true
ln -sf "$DOTFILES/claude/hooks" "$HOME/.claude/hooks"
rm "$HOME/.claude/skills" 2>/dev/null || true
ln -sf "$DOTFILES/ai/skills" "$HOME/.claude/skills"
# Home directory symlinks
ln -sf "$DOTFILES/aider/.aider.conf.yml" "$HOME/.aider.conf.yml"
ln -sf "$DOTFILES/aerospace/aerospace.toml" "$HOME/.aerospace.toml"
ln -sf "$DOTFILES/zsh/.env" "$HOME/.env"
ln -sf "$DOTFILES/mcp/mcpservers.json" "$HOME/.mcpservers.json"
ln -sf "$DOTFILES/powerlevel10k/p10k.zsh" "$HOME/.p10k.zsh"
ln -sf "$DOTFILES/ripgrep/.rgignore" "$HOME/.rgignore"
ln -sf "$DOTFILES/tmux/tmux.conf" "$HOME/.tmux.conf"
ln -sf "$DOTFILES/wezterm/wezterm.lua" "$HOME/.wezterm.lua"
ln -sf "$DOTFILES/zsh/zshrc" "$HOME/.zshrc"
# codex
ln -sf "$DOTFILES/codex/config.toml" "$HOME/.codex/config.toml"
ln -sf "$DOTFILES/ai/AGENTS.md" "$HOME/.codex/AGENTS.md"
rm "$HOME/.codex/prompts" 2>/dev/null || true
ln -sf "$DOTFILES/codex/prompts" "$HOME/.codex/prompts"
rm "$HOME/.codex/hooks" 2>/dev/null || true
ln -sf "$DOTFILES/codex/hooks" "$HOME/.codex/hooks"
rm "$HOME/.codex/skills" 2>/dev/null || true
ln -sf "$DOTFILES/ai/skills" "$HOME/.codex/skills"
# Scripts
mkdir -p "$HOME/.local/bin"
ln -sf "$DOTFILES/scripts/tmux-sessionizer" "$HOME/.local/bin/tmux-sessionizer"
chmod +x "$HOME/.local/bin/tmux-sessionizer"
ln -sf "$DOTFILES/scripts/tmux-open-repo" "$HOME/.local/bin/tmux-open-repo"
chmod +x "$HOME/.local/bin/tmux-open-repo"
ln -sf "$DOTFILES/scripts/ai-commit" "$HOME/.local/bin/ai-commit"
chmod +x "$HOME/.local/bin/ai-commit"
ln -sf "$DOTFILES/scripts/update-global-packages" "$HOME/.local/bin/update-global-packages"
chmod +x "$HOME/.local/bin/update-global-packages"
echo "Symlinks created successfully!"