File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ set-alias vi vim.exe
5757# ---------------------------------------------------------------------------
5858# Visuals
5959# ---------------------------------------------------------------------------
60- set-variable - Scope Global WindowTitle ' '
60+ # set-variable -Scope Global WindowTitle ''
6161
6262function prompt
6363{
@@ -80,7 +80,6 @@ function prompt
8080 $local :title = $path
8181 if ($WindowTitle ) { $title += " - $WindowTitle " }
8282
83- $host.ui.rawUi.windowTitle = $title
8483 $path = [IO.Path ]::GetFileName($path )
8584 if (! $path ) { $path = ' \' }
8685
@@ -105,6 +104,8 @@ function prompt
105104 $global :LASTEXITCODE = $realLASTEXITCODE
106105 }
107106
107+ $host.ui.rawUi.windowTitle = $title
108+
108109 return " >" ;
109110}
110111
You can’t perform that action at this time.
0 commit comments