-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapply.sh
More file actions
executable file
·28 lines (19 loc) · 787 Bytes
/
Copy pathapply.sh
File metadata and controls
executable file
·28 lines (19 loc) · 787 Bytes
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
#!/bin/bash
# Apply configs from this repo into $HOME (symlink or copy).
# Safe to re-run.
set -e
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# tmux
# ln -sf "$DOTFILES_DIR/.tmux.conf" "$HOME/.tmux.conf"
# Starship
mkdir -p "$HOME/.config"
ln -sf "$DOTFILES_DIR/.config/starship.toml" "$HOME/.config/starship.toml"
# Git (cp — signingkey is machine-specific, edit freely without touching the repo)
cp "$DOTFILES_DIR/.gitconfig" "$HOME/.gitconfig"
# Claude Code (cp — Claude writes to these files)
# mkdir -p "$HOME/.claude"
# cp "$DOTFILES_DIR/.claude/settings.json" "$HOME/.claude/settings.json"
# cp "$DOTFILES_DIR/.claude/statusline-command.sh" "$HOME/.claude/statusline-command.sh"
# Zsh
cp "$DOTFILES_DIR/.zshrc" "$HOME/.zshrc"
echo "Configs applied."