Skip to content

Latest commit

 

History

History
 
 

prompt

Prompt Scripts

Definition

These scripts should be used to draw a custom command prompt in nushell. They can include anything that we think is appropriate for prompts such as git commands, starship, oh-my-posh, etc.

starship.nu

File is in starship

This describe how to use starship to make a leftprompt, the repo of starship is here.

This script set the output of starship as leftprompt

starshipshow

shell_space.nu

File is in shell_space

Use the function of shells in nu, you can view the function with the command following

help shells

shell_spaceshow

jalon-git.nu

From https://github.com/JalonWong/nushell-prompt jalon-git