Skip to content

Instantly share code, notes, and snippets.

View vexx32's full-sized avatar
💜
Turn your faults into faultlore and share them with the world.

Rain Sallow (/u/ta11ow) vexx32

💜
Turn your faults into faultlore and share them with the world.
View GitHub Profile
function prompt {
$Success = $?
$ConsoleWidth = ($host.UI.RawUI.WindowSize.Width, $Host.UI.RawUI.BufferSize.Width -gt 0)[0]
$Escape = "`e["
$EndEscape = "m"
$Slash = [IO.Path]::DirectorySeparatorChar
$Path = $ExecutionContext.SessionState.Path.CurrentLocation
$CurrentFolder = Split-Path -Path $Path -Leaf
$Host.UI.RawUI.WindowTitle = "PS $Path"