Skip to content

Commit

Permalink
fix(nu): remove -c parameter from term size (#4477)
Browse files Browse the repository at this point in the history
The -c parameter has been removed through nushell/nushell#6651
  • Loading branch information
nibon7 committed Oct 15, 2022
1 parent 74951e6 commit 4999530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/starship.nu
Expand Up @@ -8,7 +8,7 @@ let-env PROMPT_INDICATOR = ""

let-env PROMPT_COMMAND = {
# 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)"
}

Expand Down

0 comments on commit 4999530

Please sign in to comment.