lukesampson / pshazz

Give your powershell some pizazz.
The Unlicense
575 stars 40 forks source link

Conflict with Windows Terminal #115

Closed robsonsobral closed 3 years ago

robsonsobral commented 3 years ago

Hi!

Pshazz prevents Windows Terminal from open a new terminal on the same directory.

robsonsobral commented 3 years ago

To avoid it, add to a plugin:

Import-Module "$pluginDir\z"
Set-Alias z Search-NavigationHistory -Scope "global"
function global:pshazz:z:prompt {
    $esc=[char]27
    $p = $pwd.ProviderPath
    Write-host "$esc]9;9;`"$p`"$esc\" -NoNewline
}