mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
chore: update nushell support for env updates
This commit is contained in:
parent
f837dcfc8a
commit
bb7584e404
|
@ -1,18 +1,18 @@
|
||||||
export-env {
|
export-env {
|
||||||
let-env POWERLINE_COMMAND = 'oh-my-posh'
|
$env.POWERLINE_COMMAND = 'oh-my-posh'
|
||||||
let-env POSH_THEME = ::CONFIG::
|
$env.POSH_THEME = ::CONFIG::
|
||||||
let-env PROMPT_INDICATOR = ""
|
$env.PROMPT_INDICATOR = ""
|
||||||
let-env POSH_PID = (random uuid)
|
$env.POSH_PID = (random uuid)
|
||||||
# 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 = ''
|
$env.PROMPT_COMMAND_RIGHT = ''
|
||||||
let-env POSH_SHELL_VERSION = (version | get version)
|
$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)")
|
$env.PROMPT_MULTILINE_INDICATOR = (^::OMP:: print secondary $"--config=($env.POSH_THEME)" --shell=nu $"--shell-version=($env.POSH_SHELL_VERSION)")
|
||||||
|
|
||||||
let-env PROMPT_COMMAND = { ||
|
$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.
|
||||||
|
|
Loading…
Reference in a new issue