The claude shell function can now find Claude Code by its running location
The shell function Claude Code writes can check the running program's own location first, then the remembered program, then whatever claude is on your path
Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
In DevelopmentKind: in v2.1.324,
In DevelopmentSection of the release
What
Claude Code can write a small shell function named claude into your shell setup so that typing claude starts the right program. When a remotely controlled switch allows it, that function now tries these in order:
The location of the Claude Code program that wrote the function
The program location Claude Code remembered before
Whatever claude your shell finds on its own, if neither of the first two can be run
Otherwise the function works as before, using an environment variable or the remembered program.
Why
The claude command keeps working when the installed program has moved since the function was written.