Skip to content

Move personal scripts to ~/.local/bin#1

Merged
hdp617 merged 1 commit into
mainfrom
cursor/fix-fish-bin-path-bb31
Jul 15, 2026
Merged

Move personal scripts to ~/.local/bin#1
hdp617 merged 1 commit into
mainfrom
cursor/fix-fish-bin-path-bb31

Conversation

@hdp617

@hdp617 hdp617 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Standardizes personal script location on ~/.local/bin (XDG convention) instead of ~/.bin. Fish already prepends ~/.local/bin in 00-path.fish.tmpl, so no Fish PATH change is needed.

Changes

  • Relocate chezmoi-managed scripts from dot_bin/ (~/.bin/) to dot_local/bin/ (~/.local/bin/).
  • Update zsh path_prepend from ~/.bin to ~/.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 apply
  • which tmx~/.local/bin/tmx (Fish and zsh)
  • Confirm ~/.bin is no longer on PATH
Open in Web Open in Cursor 

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread dot_config/fish/conf.d/00-path.fish.tmpl Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/.bin to Fish PATH setup.
  • Documents that dot_bin maps to ~/.bin via chezmoi.
  • Ensures ~/.bin is prepended ahead of ~/.local/bin and ~/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>
@cursor cursor Bot changed the title Add ~/.bin to Fish PATH Move personal scripts to ~/.local/bin Jul 13, 2026
@cursor
cursor Bot force-pushed the cursor/fix-fish-bin-path-bb31 branch from d2da846 to a3fc246 Compare July 13, 2026 03:43
@hdp617
hdp617 marked this pull request as ready for review July 13, 2026 03:45
@hdp617
hdp617 merged commit fa4babd into main Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants