mirror of
https://github.com/nushell/nushell.git
synced 2025-05-10 21:14:26 +02:00
Add example for PROMPT_COMMAND_RIGHT (#14439)
# Description I just completely left out `$env.PROMPT_COMMAND_RIGHT` in the `sample_env.nu`. This adds it in. # User-Facing Changes `config env --sample` will now include doc for `PROMPT_COMMAND_RIGHT`. # Tests + Formatting Doc-only # After Submitting n/a
This commit is contained in:
parent
32196cfe78
commit
7a9b14b49d
@ -24,6 +24,11 @@ $env.PROMPT_COMMAND = "Nushell"
|
|||||||
# Simple example - Dynamic closure displaying the path:
|
# Simple example - Dynamic closure displaying the path:
|
||||||
$env.PROMPT_COMMAND = {|| pwd}
|
$env.PROMPT_COMMAND = {|| pwd}
|
||||||
|
|
||||||
|
# PROMPT_COMMAND_RIGHT
|
||||||
|
# --------------------
|
||||||
|
# Defines a prompt which will appear right-aligned in the terminal
|
||||||
|
$env.PROMPT_COMMAND_RIGHT = {|| date now | format date "%d-%a %r" }
|
||||||
|
|
||||||
# PROMPT_INDICATOR*
|
# PROMPT_INDICATOR*
|
||||||
# -----------------
|
# -----------------
|
||||||
# The prompt indicators are environmental variables that represent
|
# The prompt indicators are environmental variables that represent
|
||||||
|
Loading…
Reference in New Issue
Block a user