Skip to content

Jan9103/nushell_yasp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Shell Prompt

A shell prompt for nushell, packaged for packer.nu and numng.

I like starship, but wanted features like nu-overlay infos.

Features

  • directory
    • relative to home, git repo or root
  • git branch
  • last exit code
  • nu overlay name
    • hide based on name
  • python package pyvenv status

Configuring it

Due to it being pretty minimal you configure it directly in the source code (for now).

Since changing the source-code messes up packer.nu's updater you should mark the package as frozen (freeze: true) beforehand and update it manually.

The code is located at $'($env.NU_PACKER_HOME)/start/yasp'

The files

  • env.nu loads it and configures the design
  • util.nu contains utility functions
  • section.nu contains functions, which generate the sections of your prompt

Known Bugs

  • registering a env.PWD hook is buggy, therefore it currently updates everything after every command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks