Skip to content

Commit 973645f

Browse files
chore(claude-code): update install script to include PATH export and remove symlink creation
1 parent d4e553e commit 973645f

File tree

1 file changed

+3
-4
lines changed
  • registry/coder/modules/claude-code/scripts

1 file changed

+3
-4
lines changed

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles
44
set -euo pipefail
55

6+
# Ensure claude binary is in PATH
7+
export PATH="$HOME/.local/bin:$PATH"
8+
69
BOLD='\033[0;1m'
710

811
command_exists() {
@@ -42,10 +45,6 @@ function install_claude_code_cli() {
4245
echo "Claude Code installer failed with exit code $$CURL_EXIT"
4346
fi
4447

45-
# Ensure binaries are discoverable.
46-
echo "Creating a symlink for claude"
47-
ln -s "${HOME}"/.local/bin/claude /usr/local/bin/claude
48-
4948
echo "Installed Claude Code successfully. Version: $(claude --version || echo 'unknown')"
5049
else
5150
echo "Skipping Claude Code installation as per configuration."

0 commit comments

Comments
 (0)