mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 01:04:00 +00:00
fix(nu): use shell-provided terminal width (#3800)
This commit is contained in:
parent
7e78cbf270
commit
859b780b46
@ -8,7 +8,8 @@ let-env PROMPT_INDICATOR = ""
|
|||||||
|
|
||||||
let-env PROMPT_COMMAND = {
|
let-env PROMPT_COMMAND = {
|
||||||
# jobs are not supported
|
# jobs are not supported
|
||||||
^::STARSHIP:: prompt --cmd-duration $env.CMD_DURATION_MS --status $env.LAST_EXIT_CODE
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# Not well-suited for `starship prompt --right`.
|
# Not well-suited for `starship prompt --right`.
|
||||||
|
Loading…
Reference in New Issue
Block a user