update theming doc
This commit is contained in:
17
README.md
17
README.md
@@ -303,6 +303,23 @@ PROMPT_THEME_DIR = ~/.mythemes # optional: custom search directory
|
|||||||
Built-in themes: `default`, `dark`, `light`, `solarized`, `solarized-light`,
|
Built-in themes: `default`, `dark`, `light`, `solarized`, `solarized-light`,
|
||||||
`monokai`, `monochrome`, `abyss`, `plasma`, `adwaita`.
|
`monokai`, `monochrome`, `abyss`, `plasma`, `adwaita`.
|
||||||
|
|
||||||
|
**Runtime theme switching (`set_theme`):**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
set_theme --list # list available themes
|
||||||
|
set_theme dark # apply theme for current shell session
|
||||||
|
set_theme --preview dark # preview theme colors without applying
|
||||||
|
set_theme --save # save currently active theme to config
|
||||||
|
set_theme --save dark # apply and save the given theme
|
||||||
|
```
|
||||||
|
|
||||||
|
`set_theme --save` writes `PROMPT_THEME` in `[prompt]` to:
|
||||||
|
|
||||||
|
- `~/.profile.conf` when present
|
||||||
|
- otherwise `profile.conf` in the profile installation directory
|
||||||
|
|
||||||
|
`--preview` and `--save` are mutually exclusive.
|
||||||
|
|
||||||
**Overriding individual prompt colour slots:**
|
**Overriding individual prompt colour slots:**
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
|||||||
Reference in New Issue
Block a user