-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·31 lines (25 loc) · 879 Bytes
/
Copy pathupdate.sh
File metadata and controls
executable file
·31 lines (25 loc) · 879 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
29
30
31
set -ex
for cmd in jq git; do
command -v "$cmd" >/dev/null 2>&1 || { echo "error: '$cmd' is required but not found on PATH" >&2; exit 1; }
done
# Shell
cp ~/.bashrc bashrc
cp ~/.zshrc zshrc
cp ~/.zprofile zprofile
# Git
cp ~/.gitignore gitignore
cp ~/.gitconfig gitconfig
git config -f gitconfig --unset user.email || true
git config -f gitconfig --unset user.signingkey || true
# IPython
cp ~/.ipython/profile_default/startup/ipython_startup.py .
# VSCode
vscode="$HOME/Library/Application Support/Code/User"
cp "$vscode/settings.json" vscode_settings.json
cp "$vscode/keybindings.json" vscode_keybindings.json
# Claude
cp ~/.claude/CLAUDE.md claude/instructions.md
jq '.permissions.allow |= map(select(startswith("Bash")))' ~/.claude/settings.json > claude/settings.json
cp ~/.claude/hooks/* claude/hooks/
mkdir -p claude/skills
cp -r ~/.claude/skills/* claude/skills/