-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (30 loc) · 1.65 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1.65 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
#!/bin/bash
###############################################################################
# Claude Code Config Install Script #
###############################################################################
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Installing Claude Code configuration..."
###############################################################################
# Create ~/.claude directory if it doesn't exist #
###############################################################################
mkdir -p ~/.claude
###############################################################################
# Backup existing files #
###############################################################################
[[ -f ~/.claude/settings.json ]] && cp ~/.claude/settings.json ~/.claude/settings.json.backup && echo "Backed up existing settings.json"
[[ -f ~/.claude/statusline.sh ]] && cp ~/.claude/statusline.sh ~/.claude/statusline.sh.backup && echo "Backed up existing statusline.sh"
###############################################################################
# Copy config files #
###############################################################################
cp "$SCRIPT_DIR/settings.json" ~/.claude/
cp "$SCRIPT_DIR/statusline.sh" ~/.claude/
chmod +x ~/.claude/statusline.sh
echo ""
echo "Installation complete!"
echo ""
echo "Files installed:"
echo " ~/.claude/settings.json"
echo " ~/.claude/statusline.sh"
echo ""
echo "Restart Claude Code to apply changes."