10000 Fix PowerShell window title + transient prompt · Issue #30 · kergoth/dotfiles · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix PowerShell window title + transient prompt #30
Open
@kergoth

Description

@kergoth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0