Last active
September 29, 2021 09:40
-
-
Save LuanVSO/6f2b94cf3bd90f184722676c43ccc1c6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#you have to put this in $profile or $profile.currentuserallhosts | |
$esc = [char]27 | |
if($env:WT_SESSION){ | |
$prevprompt = $Function:prompt | |
function prompt { | |
if ($pwd.provider.name -eq "FileSystem") { | |
$p = $pwd.ProviderPath | |
Write-host "$esc]9;9;`"$p`"$esc\" -NoNewline | |
} | |
return $prevprompt.invoke() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment