Skip to content

Commit ccac15e

Browse files
kaisugiclaude
andcommitted
Switch Claude Code from Homebrew to native installation
Native install provides auto-updates and is now the officially recommended method. npm installation is deprecated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 94e013c commit ccac15e

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/test-dotfiles.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ jobs:
7474
git --version
7575
echo "✅ Package verification passed"
7676
77+
- name: Test Claude Code native install
78+
run: |
79+
curl -fsSL https://claude.ai/install.sh | bash
80+
if command -v claude &> /dev/null; then
81+
echo "✅ Claude Code installed successfully"
82+
elif [ -f ~/.local/bin/claude ]; then
83+
echo "✅ Claude Code binary found at ~/.local/bin/claude"
84+
else
85+
echo "❌ Claude Code installation failed"
86+
exit 1
87+
fi
88+
7789
- name: Test symlink script (dry-run)
7890
run: |
7991
# Create necessary directories

Brewfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
brew 'awscli'
22
brew 'bat'
3-
brew 'claude-code'
43
brew 'coreutils'
54
brew 'ffmpeg'
65
brew 'fish'

init.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ brew bundle --file="${HOME}/dotfiles/Brewfile" || {
4242
exit 1
4343
}
4444

45+
# Claude Code (native install, auto-updates enabled)
46+
echo "Installing Claude Code..."
47+
if ! command -v claude &> /dev/null; then
48+
curl -fsSL https://claude.ai/install.sh | bash || {
49+
echo "Warning: Failed to install Claude Code"
50+
}
51+
else
52+
echo "Claude Code already installed"
53+
fi
54+
4555
# set fish shell
4656
FISH_PATH="/opt/homebrew/bin/fish"
4757
if ! grep -q "$FISH_PATH" /etc/shells; then

0 commit comments

Comments
 (0)