Skip to content

Instantly share code, notes, and snippets.

@stuartleeks
Created June 5, 2020 05:35
Show Gist options
  • Save stuartleeks/4b5f5aa6518b99f9fe1d10e76d578438 to your computer and use it in GitHub Desktop.
Save stuartleeks/4b5f5aa6518b99f9fe1d10e76d578438 to your computer and use it in GitHub Desktop.
Set prompt
function set-prompt() { echo -ne '\033]0;' $@ '\a'; }
function Set-Prompt {
param (
# Specifies a path to one or more locations.
[Parameter(Mandatory=$true,
ValueFromPipeline=$true)]
[ValidateNotNull()]
[string]
$PromptText
)
$Host.UI.RawUI.WindowTitle = $PromptText
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment