nushell

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 410a8b6a470d7e47f8a89c71dd14021a0ca1f72d
parent ec561373d73aca55d99a9703a334d5268bcdcf44
Author: minerva-jupiter <ryouturn@gmail.com>
Date:   Tue, 26 May 2026 12:31:53 +0900

"```\nfix(starship): Correct executable path and manage auto-loading\n```"
success to copy to clip

Diffstat:
Mconfig.nu | 1+
Mvendor/autoload/starship.nu | 6+++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/config.nu b/config.nu @@ -16,5 +16,6 @@ # You can also pretty-print and page through the documentation for configuration # options using: # config nu --doc | nu-highlight | less -R +$env.config.show_banner = false mkdir ($nu.data-dir | path join "vendor/autoload") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu") diff --git a/vendor/autoload/starship.nu b/vendor/autoload/starship.nu @@ -5,7 +5,7 @@ export-env { $env.STARSHIP_SHELL = "nu"; load-env { STARSHIP_SESSION_KEY: (random chars -l 16) PROMPT_MULTILINE_INDICATOR: ( - ^'C:\Users\ryout\.cargo\bin\starship.exe' prompt --continuation + ^'C:\Program Files\starship\bin\starship.exe' prompt --continuation ) # Does not play well with default character module. @@ -17,7 +17,7 @@ export-env { $env.STARSHIP_SHELL = "nu"; load-env { # The initial value of `$env.CMD_DURATION_MS` is always `0823`, which is an official setting. # See https://github.com/nushell/nushell/discussions/6402#discussioncomment-3466687. let cmd_duration = if $env.CMD_DURATION_MS == "0823" { 0 } else { $env.CMD_DURATION_MS }; - ^'C:\Users\ryout\.cargo\bin\starship.exe' prompt + ^'C:\Program Files\starship\bin\starship.exe' prompt --cmd-duration $cmd_duration $"--status=($env.LAST_EXIT_CODE)" --terminal-width (term size).columns @@ -40,7 +40,7 @@ export-env { $env.STARSHIP_SHELL = "nu"; load-env { # The initial value of `$env.CMD_DURATION_MS` is always `0823`, which is an official setting. # See https://github.com/nushell/nushell/discussions/6402#discussioncomment-3466687. let cmd_duration = if $env.CMD_DURATION_MS == "0823" { 0 } else { $env.CMD_DURATION_MS }; - ^'C:\Users\ryout\.cargo\bin\starship.exe' prompt + ^'C:\Program Files\starship\bin\starship.exe' prompt --right --cmd-duration $cmd_duration $"--status=($env.LAST_EXIT_CODE)"