-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (28 loc) · 1.02 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·37 lines (28 loc) · 1.02 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
#!/bin/bash
set -e
DOTFILES="$(cd "$(dirname "$0")" && pwd)"
# .zshrc
ln -snf "$DOTFILES/zshrc" "$HOME/.zshrc"
# Hyprland
mkdir -p "$HOME/.config"
ln -snf "$DOTFILES/hypr" "$HOME/.config/hypr"
# Waybar
ln -snf "$DOTFILES/waybar" "$HOME/.config/waybar"
# Ghostty
ln -snf "$DOTFILES/ghostty" "$HOME/.config/ghostty"
# Herdr (only config.toml — runtime logs/sockets stay local)
mkdir -p "$HOME/.config/herdr"
ln -snf "$DOTFILES/herdr/config.toml" "$HOME/.config/herdr/config.toml"
# WezTerm
ln -snf "$DOTFILES/wezterm.lua" "$HOME/.wezterm.lua"
mkdir -p "$HOME/.config/wezterm"
ln -snf "$DOTFILES/wezterm" "$HOME/.config/wezterm/fonts"
# OpenCode is a separate repo that lives at ~/.config/opencode
if [ ! -e "$HOME/.config/opencode" ]; then
git clone https://github.com/alechdev/opencode-config.git "$HOME/.config/opencode"
elif [ -d "$HOME/.config/opencode/.git" ]; then
echo "opencode-config already present at ~/.config/opencode"
else
echo "warning: ~/.config/opencode exists but is not a git repo — leave as-is"
fi
echo "done"