| ▲ | CGamesPlay 7 hours ago | ||||||||||||||||
I do this, and routinely shadow commands with my own wrappers to do things like set environment variables. And then there’s Claude. It deletes whatever it finds at ~/.local/bin/claude, so I have to use a shell function instead to invoke the full path to my wrapper. | |||||||||||||||||
| ▲ | e1g 7 hours ago | parent [-] | ||||||||||||||||
You can use an alias, which takes priority over $PATH. e.g. I have this in .zhsrc to override the "claude" executable to run it in the OS sandbox: | |||||||||||||||||
| |||||||||||||||||