-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Change default $env.TRANSIENT_PROMPT_COMMAND_RIGHT and $env.TRANSIENT_PROMPT_MULTILINE_INDICATOR #14565
Description
Related problem
With our default right prompt and multiline indicator, copying multiline commands from the terminal can be problematic, since selecting those lines will include the right prompt and multiline indicator characters. This leads to a lot of manual deletion of prompt, as well as resulting whitespace.
Describe the solution you'd like
The transient prompt gives us a good way to handle this by default for users, resulting in a better out-of-the-box experience without sacrificing the useful right-prompt and multiline indicator themselves.
I'd like to set the defaults to:
$env.TRANSIENT_PROMPT_COMMAND_RIGHT = ""
$env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = ""This means that the right-prompt and multiline indicators will display for the current commandline (useful) but disappear after the command is entered.
Any objections?
Something to keep in mind is that the right-prompt doesn't show the time that the previous command was entered, so it's not accurate nor useful - It is actually showing the time that the previous command that generated that prompt was entered.
Users can, of course, override this by simply setting:
$env.TRANSIENT_PROMPT_COMMAND_RIGHT = null
$env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = nullBut I think having
Describe alternatives you've considered
No response
Additional context and details
No response