-
-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved WindowTitle customization experience #541
Changes from 1 commit
e0ceaba
7c86bf7
e8d5488
69f530e
30bd678
520ee65
5361bc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,7 @@ class PoshGitTextSpan { | |
} | ||
} | ||
|
||
class GitPromptSettings { | ||
class PoshGitPromptSettings { | ||
[bool]$AnsiConsole = $Host.UI.SupportsVirtualTerminal -or ($Env:ConEmuANSI -eq "ON") | ||
|
||
[PoshGitCellColor]$DefaultColor = [PoshGitCellColor]::new() | ||
|
@@ -244,8 +244,9 @@ class GitPromptSettings { | |
[Nullable[bool]]$EnableFileStatusFromCache = $null | ||
[string[]]$RepositoriesInWhichToDisableFileStatus = @() | ||
|
||
[string]$DescribeStyle = '' | ||
[psobject]$EnableWindowTitle = 'posh~git ~ ' | ||
[string]$DescribeStyle = '' | ||
[bool]$EnableWindowTitle = $true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm not too worried about this, since resetting is as simple as opening a new shell. Fewer settings seems better than many. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, we have reduced the number of "top-level" settings a lot. :-) But I don't feel that strongly about this. |
||
[psobject]$WindowTitle = {param($GitStatus, [bool]$IsAdmin) "$(if ($IsAdmin) {'Admin: '})posh~git ~ $($GitStatus.RepoName) [$($GitStatus.Branch)]"} | ||
|
||
[PoshGitTextSpan]$DefaultPromptPrefix = '' | ||
[PoshGitTextSpan]$DefaultPromptSuffix = '$(''>'' * ($nestedPromptLevel + 1)) ' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
"$PreviousWindowTitle "
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh! Yes it should be. Thanks. I'll fix it tonight.