Cleaner prompt, Reload-MyScripts -Update switch
This commit is contained in:
parent
6ff3357c58
commit
532f82775b
3 changed files with 15 additions and 3 deletions
|
@ -10,8 +10,11 @@ Get-Command -ListImported Set-PSReadLineKeyHandler -ErrorAction SilentlyContinue
|
|||
if( (Get-Command -ListImported Set-PowerLinePrompt -ErrorAction Ignore) ) {
|
||||
$global:PSOSName = [SystemName]::_GetValidValues("",$true,$true) | Select-Object -First 1
|
||||
|
||||
if( Get-Command -ListImported Get-GitDirectory -ErrorAction Ignore ) { $null = Get-GitDirectory }
|
||||
if( Test-Path variable:global:GitPromptSettings ) {
|
||||
$global:GitPromptSettings.TruncatedBranchSuffix = [char]0x2026
|
||||
$global:GitPromptSettings.BeforeStatus.Text = [PoshCode.Pansies.Entities]::ExtendedCharacters.Branch
|
||||
$global:GitPromptSettings.AfterStatus.Text = [string]::Empty
|
||||
}
|
||||
Set-PowerLinePrompt
|
||||
} elseif( (Get-Command -ListImported Set-PoshPrompt -ErrorAction Ignore) -and $IsOutputANSICompatible ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue