diff --git a/src/init/starship.nu b/src/init/starship.nu index b9fc7bea..95a9b0b1 100644 --- a/src/init/starship.nu +++ b/src/init/starship.nu @@ -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)" }