Move personal scripts to ~/.local/bin#1
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds $HOME/.bin to the Fish shell path configuration. The reviewer noted that because fish_add_path -p prepends paths, sequential calls result in the last path having the highest priority, which reverses the intended order. To fix this, it is recommended to combine the paths into a single fish_add_path call.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
This PR updates the Fish shell PATH initialization so that user-installed binaries deployed by chezmoi into ~/.bin are available by default, matching the existing Zsh behavior.
Changes:
- Adds
fish_add_path -g -p $HOME/.binto Fish PATH setup. - Documents that
dot_binmaps to~/.binvia chezmoi. - Ensures
~/.binis prepended ahead of~/.local/binand~/bin.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Standardize on XDG-style ~/.local/bin instead of ~/.bin. Fish already prepends ~/.local/bin in 00-path.fish.tmpl; relocate chezmoi dot_bin/ to dot_local/bin/ and update zsh path_prepend to match. Co-authored-by: Huy Pham <hdp617@users.noreply.github.com>
d2da846 to
a3fc246
Compare
Summary
Standardizes personal script location on
~/.local/bin(XDG convention) instead of~/.bin. Fish already prepends~/.local/binin00-path.fish.tmpl, so no Fish PATH change is needed.Changes
dot_bin/(~/.bin/) todot_local/bin/(~/.local/bin/).path_prependfrom~/.binto~/.local/bin.Migration
After
chezmoi apply, scripts (tmx,git-diff-changes) live at~/.local/bin/. Remove any stale~/.bin/symlinks or files chezmoi no longer manages.Test plan
chezmoi applywhich tmx→~/.local/bin/tmx(Fish and zsh)~/.binis no longer on PATH