{"version":"2.1.324","anchor":"shell-wrapper-function-can-prefer-processexecpath-behind-t","canonical_anchor":"shell-wrapper-function-can-prefer-processexecpath-behind-t","heading":"The claude shell function can now find Claude Code by its running location","tier":"soon","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/shell-wrapper-function-can-prefer-processexecpath-behind-t","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### The `claude` shell function can now find Claude Code by its running location\n\nThe 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\n\n**What**\n\nClaude 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:\n\n- The location of the Claude Code program that wrote the function\n\n- The program location Claude Code remembered before\n\n- Whatever `claude` your shell finds on its own, if neither of the first two can be run\n\nOtherwise the function works as before, using an environment variable or the remembered program.\n\n**Why**\n\nThe `claude` command keeps working when the installed program has moved since the function was written.\n\n- Area: Elsewhere\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}