Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Only set console title using ANSI
Browse files Browse the repository at this point in the history
Resolves #159
  • Loading branch information
JanDeDobbeleer committed Jul 30, 2019
1 parent 65c57c1 commit ddc4727
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions Helpers/PoshGit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,6 @@ function Get-VcsInfo {
$vcInfo = $vcInfo + "$($sl.GitSymbols.BeforeStashSymbol)$($status.StashCount)$($sl.GitSymbols.AfterStashSymbol) "
}

if ($WindowTitleSupported -and $spg.EnableWindowTitle) {
if( -not $Global:PreviousWindowTitle ) {
$Global:PreviousWindowTitle = $Host.UI.RawUI.WindowTitle
}
$repoName = Split-Path -Leaf -Path (Split-Path -Path $status.GitDir)
$prefix = if ($spg.EnableWindowTitle -is [string]) {
$spg.EnableWindowTitle
}
else {
''
}
$Host.UI.RawUI.WindowTitle = "$script:adminHeader$prefix$repoName [$($status.Branch)]"
}

return New-Object PSObject -Property @{
BackgroundColor = $branchStatusBackgroundColor
VcInfo = $vcInfo.Trim()
Expand Down
1 change: 0 additions & 1 deletion oh-my-posh.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function Set-Prompt {
if ($env:ConEmuANSI -eq "ON") {
$location = Get-Location
$folder = (Get-Item $location.Path).Name
$prompt += "$([char]27)]9;12$([char]7)"
$prompt += "$([char]27)]2;$($folder)$([char]7)"
if ($location.Provider.Name -eq "FileSystem") {
$prompt += "$([char]27)]9;9;`"$($location.Path)`"$([char]7)"
Expand Down

0 comments on commit ddc4727

Please sign in to comment.