Repro steps:
Set an alias in your .bash_profile or similar
alias baz=echo
Verify that this alias does not work from Gemini CLI
e.g running
! baz hello
while return an error rather than echoing hello.
Solving this likely involves changing how we run shell scripts as we only want to pay the cost of spawning a shell that reads the full .bash_profile once per session.
This may be a little risky so should be implemented as a setting first.
Other CLIs support this robustly. The fact that we don't makes it confusing for users to know what shell commands they can run in their CLI.
Other problems that a solution for this should likely solve:
- Persisting env variables between shells run by the same Gemini CLI instance.
Repro steps:
Set an alias in your .bash_profile or similar
alias baz=echoVerify that this alias does not work from Gemini CLI
e.g running
! baz hellowhile return an error rather than echoing hello.
Solving this likely involves changing how we run shell scripts as we only want to pay the cost of spawning a shell that reads the full .bash_profile once per session.
This may be a little risky so should be implemented as a setting first.
Other CLIs support this robustly. The fact that we don't makes it confusing for users to know what shell commands they can run in their CLI.
Other problems that a solution for this should likely solve: