Last active
December 17, 2020 10:19
-
-
Save skyline75489/480d036db8ae9069b7009377e6eebb79 to your computer and use it in GitHub Desktop.
Windows Terminal OSC 9;9 for PowerShell
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 prompt { | |
$p = $($executionContext.SessionState.Path.CurrentLocation) | |
$converted_path = Convert-Path $p | |
$ansi_escape = [char]27 | |
"PS $p$('>' * ($nestedPromptLevel + 1)) "; | |
Write-Host "$ansi_escape]9;9;$converted_path$ansi_escape\" | |
} |
Although I didn't create these directories.
AbsolutePath : C:/dog%25/cat%23/mousewords
If it wasn't you, there's a strong indication that your cat may have been responsible.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup, it supports that fine. Although I didn't create these directories.