Skip to content

Commit

Permalink
fix(nu): continuation prompt not being displayed correctly (#5851)
Browse files Browse the repository at this point in the history
Resolve #5847 by initializing `$env.STARSHIP_SHELL` before calling `starship`

Most minimal change possible. Other simplification are possible but not know to be
backwards compatible. Also considered `with-env` or `STARSHIP_SHELL=nu starship` but
they'd be worse. Happy to reformat indentation if desired.
  • Loading branch information
texastoland committed Mar 21, 2024
1 parent ae46189 commit d308e91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/init/starship.nu
Expand Up @@ -2,8 +2,7 @@
# - overlay which can be loaded with `overlay use starship.nu`
# - module which can be used with `use starship.nu`
# - script which can be used with `source starship.nu`
export-env { load-env {
STARSHIP_SHELL: "nu"
export-env { $env.STARSHIP_SHELL = "nu"; load-env {
STARSHIP_SESSION_KEY: (random chars -l 16)
PROMPT_MULTILINE_INDICATOR: (
^::STARSHIP:: prompt --continuation
Expand Down

0 comments on commit d308e91

Please sign in to comment.