Skip to content

feat: add env var support while typing#622

Open
vitorsss wants to merge 1 commit intocharmbracelet:mainfrom
vitorsss:add_env_var_support
Open

feat: add env var support while typing#622
vitorsss wants to merge 1 commit intocharmbracelet:mainfrom
vitorsss:add_env_var_support

Conversation

@vitorsss
Copy link

@vitorsss vitorsss commented May 4, 2025

Describe your changes

Add minimal support for environment variables while typing.

Type $SOME_ENV_VAR

Related issue/discussion: #621

@vitorsss vitorsss requested a review from a team as a code owner May 4, 2025 20:36
@vitorsss vitorsss requested review from bashbunni and removed request for a team May 4, 2025 20:36
@dzuelke
Copy link

dzuelke commented Aug 23, 2025

Note that this can already be done when using zsh as the shell with a sequence of Hide, Type "${ENV_VAR_NAME}", Tab, and Show - the shell will then expand the variable (due to the curly braces), correctly escaped:

Set Shell zsh

Type "curl "
Hide
Type "${URL_FROM_ENV}"
Tab
Show

Sleep 2s

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants