File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- param ([switch ]$ForcePoshGitPrompt )
1
+ param ([bool ]$ForcePoshGitPrompt )
2
2
3
3
. $PSScriptRoot \CheckRequirements.ps1 > $null
4
4
@@ -13,9 +13,6 @@ param([switch]$ForcePoshGitPrompt)
13
13
. $PSScriptRoot \GitTabExpansion.ps1
14
14
. $PSScriptRoot \TortoiseGit.ps1
15
15
16
- if (! $Env: HOME ) { $Env: HOME = " $Env: HOMEDRIVE$Env: HOMEPATH " }
17
- if (! $Env: HOME ) { $Env: HOME = " $Env: USERPROFILE " }
18
-
19
16
$IsAdmin = Test-Administrator
20
17
21
18
# Get the default prompt definition.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Describe 'Default Prompt Tests - NO ANSI' {
14
14
15
15
Context ' Prompt with no Git summary' {
16
16
It ' Returns the expected prompt string' {
17
- Set-Location $env: HOME - ErrorAction Stop
17
+ Set-Location $HOME - ErrorAction Stop
18
18
$res = [string ](& $prompt * > & 1 )
19
19
$res | Should BeExactly " $ ( Get-PromptConnectionInfo ) $ ( GetHomePath) > "
20
20
}
@@ -152,7 +152,7 @@ Describe 'Default Prompt Tests - ANSI' {
152
152
153
153
Context ' Prompt with no Git summary' {
154
154
It ' Returns the expected prompt string' {
155
- Set-Location $env: HOME - ErrorAction Stop
155
+ Set-Location $HOME - ErrorAction Stop
156
156
$res = & $prompt
157
157
$res | Should BeExactly " $ ( Get-PromptConnectionInfo ) $ ( GetHomePath) > "
158
158
}
You can’t perform that action at this time.
0 commit comments