mirror of
https://github.com/nushell/nushell
synced 2024-12-25 20:43:09 +00: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
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,11 @@ $env.PROMPT_COMMAND = "Nushell"
|
|||
# Simple example - Dynamic closure displaying the path:
|
||||
$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*
|
||||
# -----------------
|
||||
# The prompt indicators are environmental variables that represent
|
||||
|
|
Loading…
Reference in a new issue