Add ~/.local/bin to PATH for user-installed binaries#3
Add ~/.local/bin to PATH for user-installed binaries#3davidkreps wants to merge 2 commits intomainfrom
Conversation
- Back up existing files before overwriting with symlinks (safe_link helper) - Trim git/ignore to OS/editor artifacts only; remove language-specific patterns - Remove surprising merge.ff=false and merge.commit=no from git/config - Guard cursor-shape escape sequences behind [[ -o interactive ]] - Bind phpserver to 127.0.0.1 instead of LAN IP - Remove pip='pip3' alias (breaks virtualenvs) and d='docker' alias (conflict risk) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
XDG-standard location used by pip --user, cargo, claude CLI, etc. Guarded with existence check for graceful degradation on machines where the directory doesn't exist. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @davidkreps's task in 2m 18s —— View job PR Review: Add ~/.local/bin to PATH for user-installed binaries
SummaryThe core Issues1.
The PR body should document this change, or the deletion should be reversed unless it was intentional. 2. # New entry (correct — guarded):
[ -d "$HOME/.local/bin" ] && export PATH="$HOME/.local/bin:$PATH"
# Existing entry (unguarded — inconsistent):
export PATH="$HOME/.npm-global/bin:$PATH"The 3. Claude alias may shadow [ -x "$HOME/.claude/local/claude" ] && alias claude="$HOME/.claude/local/claude"The PR adds 4. PR scope exceeds description The PR description says it "Adds What's correct
Minor
RecommendationBefore merging:
|
|
Closing — branched off wrong base. Will resubmit off main. |
Summary
$HOME/.local/bintoPATHin.zshrc, alongside the other PATH additions[ -d ... ]so it's silently skipped on machines where the directory doesn't existTest plan
./test.shpasses (36/36)claudeis accessible after sourcing.zshrcon a machine with~/.local/binpopulated🤖 Generated with Claude Code