fixed nushell continuation prompt.
This commit is contained in:
parent
e3a9ca33ce
commit
affb14dff5
|
@ -48,22 +48,21 @@ def create_right_prompt [] {
|
|||
|
||||
# Use nushell functions to define your right and left prompt
|
||||
$env.PROMPT_COMMAND = {|| create_left_prompt }
|
||||
# FIXME: This default is not implemented in rust code as of 2023-09-08.
|
||||
$env.PROMPT_COMMAND_RIGHT = {|| create_right_prompt }
|
||||
|
||||
# The prompt indicators are environmental variables that represent
|
||||
# the state of the prompt
|
||||
$env.PROMPT_INDICATOR = {|| "> " }
|
||||
$env.PROMPT_INDICATOR_VI_INSERT = {|| "> " }
|
||||
$env.PROMPT_INDICATOR_VI_NORMAL = {|| ": " }
|
||||
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
||||
$env.PROMPT_INDICATOR = {'> '}
|
||||
$env.PROMPT_INDICATOR_VI_INSERT = {'> '}
|
||||
$env.PROMPT_INDICATOR_VI_NORMAL = {': '}
|
||||
$env.PROMPT_MULTILINE_INDICATOR = {'::: '}
|
||||
|
||||
# If you want previously entered commands to have a different prompt from the usual one,
|
||||
# you can uncomment one or more of the following lines.
|
||||
# This can be useful if you have a 2-line prompt and it's taking up a lot of space
|
||||
# because every command entered takes up 2 lines instead of 1. You can then uncomment
|
||||
# the line below so that previously entered commands show with a single `🚀`.
|
||||
# $env.TRANSIENT_PROMPT_COMMAND = {|| "🚀 " }
|
||||
# $env.TRANSIENT_PROMPT_COMMAND = {||""}
|
||||
# $env.TRANSIENT_PROMPT_INDICATOR = {|| "" }
|
||||
# $env.TRANSIENT_PROMPT_INDICATOR_VI_INSERT = {|| "" }
|
||||
# $env.TRANSIENT_PROMPT_INDICATOR_VI_NORMAL = {|| "" }
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
continuation_prompt = '---> '
|
||||
|
||||
format = """
|
||||
[](color_orange)\
|
||||
$shell\
|
||||
|
|
Loading…
Reference in a new issue