Skip to content

Commit 7b51460

Browse files
pheentyJanDeDobbeleer
authored andcommitted
fix: multiline command
1 parent 8bcfcb1 commit 7b51460

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

src/shell/scripts/omp.nu

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ def --wrapped _omp_get_prompt [
3838
$ms => { $ms | into int }
3939
}
4040

41-
^$_omp_executable print $type
42-
--save-cache
43-
--shell=nu
44-
$"--shell-version=($env.POSH_SHELL_VERSION)"
45-
$"--status=($env.LAST_EXIT_CODE)"
46-
$"--no-status=($execution_time < 0)"
47-
$"--execution-time=($execution_time)"
48-
$"--terminal-width=((term size).columns)"
49-
$"--job-count=(job list | length)"
50-
...$args
41+
(
42+
^$_omp_executable print $type
43+
--save-cache
44+
--shell=nu
45+
$"--shell-version=($env.POSH_SHELL_VERSION)"
46+
$"--status=($env.LAST_EXIT_CODE)"
47+
$"--no-status=($execution_time < 0)"
48+
$"--execution-time=($execution_time)"
49+
$"--terminal-width=((term size).columns)"
50+
$"--job-count=(job list | length)"
51+
...$args
52+
)
5153
}
5254

5355
$env.PROMPT_MULTILINE_INDICATOR = (

0 commit comments

Comments
 (0)