Skip Navigation

Starship v1.23.0 Offers Nushell Completions

Starship is a customizable prompt with support for multiple shells, including Nushell. Starship v1.23.0 includes:

completions: Offer Nushell completions (#6366) (df454d5)

——— The completions can be generated in the env.nu into an autoload dir:

 nu
starship completions nushell | save --force $'($nu.user-autoload-dirs | last)/starship-completions.nu'

——— I have a setup that generates env files only once per day, resulting in faster shell startup otherwise.

 nu
call-if-old $'($nu.user-autoload-dirs | last)/starship-completions.nu' {|filepath| starship completions nushell | save -f $filepath }

call-if-old is a command I defined. ——— Completions Demonstration: image image

github.com

Comments