fix(nushell): update syntax to for v0.78.0

This commit is contained in:
Marc Espín 2023-04-05 13:36:27 +02:00 committed by Jan De Dobbeleer
parent 9f5ff92676
commit 7e04bdc9f7
No known key found for this signature in database
GPG key ID: D9FE64756B9A61E6

View file

@ -6,13 +6,13 @@ export-env {
# By default displays the right prompt on the first line # By default displays the right prompt on the first line
# making it annoying when you have a multiline prompt # making it annoying when you have a multiline prompt
# making the behavior different compared to other shells # making the behavior different compared to other shells
let-env PROMPT_COMMAND_RIGHT = {''} let-env PROMPT_COMMAND_RIGHT = ''
let-env POSH_SHELL_VERSION = (version | get version) let-env POSH_SHELL_VERSION = (version | get version)
# PROMPTS # PROMPTS
let-env PROMPT_MULTILINE_INDICATOR = (^::OMP:: print secondary $"--config=($env.POSH_THEME)" --shell=nu $"--shell-version=($env.POSH_SHELL_VERSION)") let-env PROMPT_MULTILINE_INDICATOR = (^::OMP:: print secondary $"--config=($env.POSH_THEME)" --shell=nu $"--shell-version=($env.POSH_SHELL_VERSION)")
let-env PROMPT_COMMAND = { let-env PROMPT_COMMAND = { ||
# We have to do this because the initial value of `$env.CMD_DURATION_MS` is always `0823`, # We have to do this because the initial value of `$env.CMD_DURATION_MS` is always `0823`,
# which is an official setting. # which is an official setting.
# See https://github.com/nushell/nushell/discussions/6402#discussioncomment-3466687. # See https://github.com/nushell/nushell/discussions/6402#discussioncomment-3466687.