mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
docs: add gif for transient prompt
This commit is contained in:
parent
410fb82e13
commit
84bddd4b99
|
@ -76,6 +76,14 @@ Import/invoke Oh My Posh in your `$PROFILE` and add the following line below:
|
||||||
Enable-PoshTooltips
|
Enable-PoshTooltips
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```pwsh
|
||||||
|
# $PROFILE
|
||||||
|
oh-my-posh --init --shell pwsh --config ~\wildertheme.json | Invoke-Expression
|
||||||
|
Enable-PoshTooltips
|
||||||
|
```
|
||||||
|
|
||||||
Restart your shell or reload your `$PROFILE` using `. $PROFILE` for the changes to take effect.
|
Restart your shell or reload your `$PROFILE` using `. $PROFILE` for the changes to take effect.
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
@ -102,6 +110,15 @@ Transient prompt, when enabled, replaces the prompt with a simpler one to allow
|
||||||
You can use go [text/template][go-text-template] templates extended with [sprig][sprig] to enrich the text.
|
You can use go [text/template][go-text-template] templates extended with [sprig][sprig] to enrich the text.
|
||||||
Environment variables are available, just like the [`console_title_template`][console-title] functionality.
|
Environment variables are available, just like the [`console_title_template`][console-title] functionality.
|
||||||
|
|
||||||
|
Typically, your prompt will simply leave the prompt on the screen when you execute a command (or press enter) like so:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
By enabling Transient Prompt, you can replace the prompt with some other content for a cleaner console as shown here:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
You need to extend or create a custom theme with your transient prompt. For example:
|
You need to extend or create a custom theme with your transient prompt. For example:
|
||||||
|
|
BIN
docs/static/img/transient-after.gif
vendored
Normal file
BIN
docs/static/img/transient-after.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
docs/static/img/transient-before.gif
vendored
Normal file
BIN
docs/static/img/transient-before.gif
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Loading…
Reference in a new issue