Repository navigation
Releases
Releases · Baune8D/claude-code-macos
v1.1.2
- Off a Mac, all three hooks now exit before doing anything. The PATH hook already said nothing there, but it still wrote a PATH line to
CLAUDE_ENV_FILEwhen it found Linuxbrew gnubin directories, putting one GNU build ahead of another.warn-old-bash.shhad no platform check, so a distribution's bash 4.4 or an older Git for Windows got "Fix: brew install bash". - The README has a new "Off a Mac" section. The copy-in route now says what the
envblock does elsewhere: harmless on Linux, but on Windows a bareCLAUDE_CODE_SHELL=bashmay resolve to the WSL launcher (read from the 2.1.296 binary, not tested on Windows). A team on mixed OSes should commit only thehooksblock.
v1.1.1
- A gnubin that an earlier PATH entry shadows is now prepended. Previously the hook counted a gnubin as already winning whenever it sat ahead of
/usr/bin, so an earlier directory with its ownsed— or an empty,.or other relative entry, which resolves against whatever directory a command runs in — kept answering while the hook told the agentsedwas GNU. - Where
findandgrepstayed the macOS builds, the agent's line now names themcommand findandcommand grep: the bare names are Claude Code's bfs and ugrep whatever PATH holds.
v1.1.0
- On a Mac, the PATH hook now always tells the agent which commands are GNU (
date,stat,xargs,awk,sed,tar,which), not only which stayed macOS. Silence letPlatform: darwinand the auto-mode prompt's BSD/macOS note lead the agent to write BSD forms such assed -i '', which GNU sed rejects.findandgrepare never named, since Claude Code answers those two itself.
v1.0.1
v1.0.0
Initial release.
settings.jsonenv block that switches Claude Code's Bash tool from zsh to bash 5.SessionStarthook that puts Homebrew's gnubin directories first on the Bash tool's PATH, sosed,date,stat,awk,tar,whichandxargsresolve to the GNU builds.- Installable as a plugin via
/plugin marketplace add Baune8D/claude-code-macos, or by copying the files into a repository. - Warns once at session start when the Bash tool is not running bash, or when the bash that won is still Apple's 3.2.
- MIT license.