
Change your prompt | Oh My Posh
Clink has builtin support for Oh My Posh. It allows you to set the prompt using the clink command.
Home | Oh My Posh
Oh My Posh enables you to use the full color set of your terminal by using colors to define and render the prompt. Customizable Easily adjust existing themes or create your own.
Introduction | Oh My Posh
Oh My Posh is a custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable. Concept Traditionally, prompt tools work with custom scripts per theme (just like Oh My Posh 2 did) or a lot of CLI configuration switches to define what it looks like.
Customize | Oh My Posh
To set a new config/theme you need to change the --config option of the oh-my-posh init <shell> line in your profile or .<shell>rc script (see prompt) and point it to the location of a predefined theme or custom configuration.
Windows | Oh My Posh
You can find the themes in the folder indicated by the environment variable POSH_THEMES_PATH. For example, you can use oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression for the prompt initialization in PowerShell.
Themes | Oh My Posh
Oh My Posh comes with many themes included out-of-the-box. Below are some screenshots of the more common themes. For the full updated list of themes, view the themes in Github.
General | Oh My Posh
Oh My Posh renders your prompt based on the definition of blocks (like Lego) which contain one or more segments. A really simple configuration could look like this. The default format is json, but we also support toml and yaml. There's a schema available which is kept up-to-date and helps with autocomplete and validation of the configuration.
Transient prompt | Oh My Posh
Oh My posh handles enabling the feature automatically for all shells except cmd when the config contains a transient prompt configuration. For cmd, you can run the command below once to enable the feature permanently:
FAQ | Oh My Posh
Conda will automatically prepend the prompt with the name of the environment you're in. To solely rely on Oh My Posh to set the prompt, you can configure the following setting to hide it. Make sure to add this before initializing Oh My Posh.
Secondary prompt | Oh My Posh
The secondary prompt is displayed when a command text spans multiple lines. The default is > . You can use go text/template templates extended with sprig to enrich the text.