nu: Enable transient prompt

Enabled transient prompt for nushell so we only display the line
character and attempt to display command durations for past prompts.

Not sure if command duration is working correctly. If not, might have to
revert this change.
This commit is contained in:
Marty Oehme 2025-10-18 12:58:43 +02:00
parent ae5470a5d8
commit 37cc1a3d83
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -16,7 +16,10 @@ $env.config.edit_mode = "vi"
$env.config.completions.algorithm = "fuzzy" $env.config.completions.algorithm = "fuzzy"
$env.PROMPT_INDICATOR = "" $env.PROMPT_INDICATOR = ""
$env.PROMPT_MULTILINE_INDICATOR = "::: " $env.PROMPT_MULTILINE_INDICATOR = "::: " # overwritten by starship
# enable transient prompt with starship
$env.TRANSIENT_PROMPT_COMMAND = ^starship module character
$env.TRANSIENT_PROMPT_COMMAND_RIGHT = {|| ^starship module cmd_duration }
# FIXME: Disabled for now to use starship prompts instead # FIXME: Disabled for now to use starship prompts instead
# but still very buggy. See: # but still very buggy. See: