fix(nu): remove -c parameter from `term size` (#4477)

The -c parameter has been removed through nushell/nushell#6651
This commit is contained in:
nibon7 2022-10-15 20:16:14 +08:00 committed by GitHub
parent 74951e630e
commit 49995301ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ let-env PROMPT_INDICATOR = ""
let-env PROMPT_COMMAND = { let-env PROMPT_COMMAND = {
# jobs are not supported # jobs are not supported
let width = (term size -c | get columns | into string) let width = (term size | 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)"
} }