Skip to content

Commit

Permalink
docs: add gif for transient prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnwildermuth committed Oct 19, 2021
1 parent 410fb82 commit 84bddd4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/docs/beta.mdx
Expand Up @@ -76,6 +76,14 @@ Import/invoke Oh My Posh in your `$PROFILE` and add the following line below:
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.

</TabItem>
Expand All @@ -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.
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:

![Before Transient](/img/transient-before.gif)

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

![After Transient](/img/transient-after.gif)


### Configuration

You need to extend or create a custom theme with your transient prompt. For example:
Expand Down
Binary file added docs/static/img/transient-after.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/transient-before.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84bddd4

Please sign in to comment.