mirror of
https://github.com/charmbracelet/gum
synced 2024-06-26 17:20:16 +02:00
docs: Add ENVIRONMENT_VARIABLE
configuration to README
This commit is contained in:
parent
9b3c8c0db0
commit
4cb290e596
15
README.md
15
README.md
|
@ -152,6 +152,21 @@ gum input --cursor.foreground "#FF0" --prompt.foreground "#0FF" --prompt "* " \
|
||||||
--placeholder "What's up?" --width 80 --value "Not much, hby?"
|
--placeholder "What's up?" --width 80 --value "Not much, hby?"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also use `ENVIRONMENT_VARIABLES` to customize `gum` by default, this is
|
||||||
|
useful to keep a consistent theme for all your `gum` commands.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export GUM_INPUT_CURSOR_FOREGROUND="#FF0"
|
||||||
|
export GUM_INPUT_PROMPT_FOREGROUND="#0FF"
|
||||||
|
export GUM_INPUT_PLACEHOLDER="What's up?"
|
||||||
|
export GUM_INPUT_PROMPT="* "
|
||||||
|
export GUM_INPUT_WIDTH=80
|
||||||
|
|
||||||
|
# Uses values configured through environment variables above but can still be
|
||||||
|
# overridden with flags.
|
||||||
|
gum input
|
||||||
|
```
|
||||||
|
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(max-width: 600px)" srcset="https://stuff.charm.sh/gum/customization.gif">
|
<source media="(max-width: 600px)" srcset="https://stuff.charm.sh/gum/customization.gif">
|
||||||
<source media="(min-width: 600px)" width="600" srcset="https://stuff.charm.sh/gum/customization.gif">
|
<source media="(min-width: 600px)" width="600" srcset="https://stuff.charm.sh/gum/customization.gif">
|
||||||
|
|
Loading…
Reference in a new issue