Skip to content

Commit 79bd218

Browse files
committed
update the window title
1 parent a710d02 commit 79bd218

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Profile.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

6262
function 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

0 commit comments

Comments
 (0)