From 49995301ce90a0f63b2d5f9cbb30021a0f08f6ff Mon Sep 17 00:00:00 2001 From: nibon7 Date: Sat, 15 Oct 2022 20:16:14 +0800 Subject: [PATCH] fix(nu): remove -c parameter from `term size` (#4477) The -c parameter has been removed through nushell/nushell#6651 --- src/init/starship.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/starship.nu b/src/init/starship.nu index b779df90..b9fc7bea 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 -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)" }