1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 07:46:28 +00:00

fix(nu): Use = instead of space to pass command line parameters (#3833)

This fixes https://github.com/nushell/nushell/issues/5074
This commit is contained in:
Hofer-Julian 2022-04-04 20:03:43 +02:00 committed by GitHub
parent 03343272b7
commit 2608db3a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ let-env PROMPT_INDICATOR = ""
let-env PROMPT_COMMAND = {
# jobs are not supported
let width = (term size -c | get columns | into string)
^::STARSHIP:: prompt --cmd-duration $env.CMD_DURATION_MS --status $env.LAST_EXIT_CODE --terminal-width $width
^::STARSHIP:: prompt $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
}
# Not well-suited for `starship prompt --right`.