Skip to content

Gemini CLI Shell Command does not support aliases #21461

@jacob314

Description

@jacob314

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:

  1. Persisting env variables between shells run by the same Gemini CLI instance.

Metadata

Metadata

Assignees

Labels

status/possible-duplicateworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions