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

refactor(nu): simplify getting term width (#4503)

refactor(init,nu): simplify getting term width
This commit is contained in:
Verdayne Graham 2022-10-22 12:17:33 +00:00 committed by GitHub
parent eccd8be17e
commit cdf0d12937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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