Created
June 5, 2020 05:35
-
-
Save stuartleeks/4b5f5aa6518b99f9fe1d10e76d578438 to your computer and use it in GitHub Desktop.
Set prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function set-prompt() { echo -ne '\033]0;' $@ '\a'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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