You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Starship support for a transient prompt requires that we call Enable-TransientPrompt. This calls Set-PSReadLineKeyHandler for the Enter key. Unfortunately, I like to set my window title based on the running command, which requires that I set the Enter key handler myself. I can't have a single handler that provides both pieces of functionality today, as Starship requires that a $script:TransientPrompt variable be set, but we can't set a $script variable in the starship module from outside the module. If starship provided a Set-TransientPrompt function to wrap the set of that script-internal variable, then we could copy the key handler and extend it.
Submit an issue against the starship repository suggesting the addition of a Set-TransientPrompt function to allow for this.
This was submitted at starship/starship#6514, so this issue is currently blocked on that one.
The text was updated successfully, but these errors were encountered:
The Starship support for a transient prompt requires that we call
Enable-TransientPrompt
. This callsSet-PSReadLineKeyHandler
for theEnter
key. Unfortunately, I like to set my window title based on the running command, which requires that I set theEnter
key handler myself. I can't have a single handler that provides both pieces of functionality today, as Starship requires that a$script:TransientPrompt
variable be set, but we can't set a$script
variable in the starship module from outside the module. If starship provided aSet-TransientPrompt
function to wrap the set of that script-internal variable, then we could copy the key handler and extend it.Set-TransientPrompt
function to allow for this.This was submitted at starship/starship#6514, so this issue is currently blocked on that one.
The text was updated successfully, but these errors were encountered: