How to configure 3rd party prompts
If you like , you can use oh-my-posh with Nushell with a few steps. It works great with Nushell. How to setup oh-my-posh with Nushell:
- Install Oh My Posh and download oh-my-posh’s themes following guide (opens new window).
- Download and install a .
- Set the PROMPT_COMMAND in ~/.config/nushell/config.nu(or the path output by ), change to whatever you like Themes demo (opens new window).
For MacOS users:
- Download and install a .
- Set the PROMPT_COMMAND in the file output by , here is a code snippet:
- Follow the links above and install Starship.
- Use the config example below. Make sure to set the environment variable.
Here’s an example config section for Starship:
Now restart Nu.
You can learn more about configuring Starship in the .