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

Commit

Permalink
fix(computername): use Environment::MachineName for computername
Browse files Browse the repository at this point in the history
  • Loading branch information
mpodwysocki authored and JanDeDobbeleer committed Sep 6, 2018
1 parent 0c72737 commit 8d3d148
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Themes/Agnoster.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Write-Theme {
}

$user = [System.Environment]::UserName
$computer = Get-ComputerName
$computer = [System.Environment]::MachineName
if (Test-NotDefaultUser($user)) {
$prompt += Write-Prompt -Object "$user@$computer " -ForegroundColor $sl.Colors.SessionInfoForegroundColor -BackgroundColor $sl.Colors.SessionInfoBackgroundColor
}
Expand Down
2 changes: 1 addition & 1 deletion Themes/Fish.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Write-Theme {
}

$user = [System.Environment]::UserName
$computer = $env:computername
$computer = [System.Environment]::MachineName
$path = Get-FullPath -dir $pwd
if (Test-NotDefaultUser($user)) {
$prompt += Write-Prompt -Object "$user@$computer " -ForegroundColor $sl.Colors.SessionInfoForegroundColor -BackgroundColor $sl.Colors.SessionInfoBackgroundColor
Expand Down
2 changes: 1 addition & 1 deletion Themes/Paradox.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Write-Theme {
}

$user = [System.Environment]::UserName
$computer = $env:computername
$computer = [System.Environment]::MachineName
$path = Get-FullPath -dir $pwd
if (Test-NotDefaultUser($user)) {
$prompt += Write-Prompt -Object "$user@$computer " -ForegroundColor $sl.Colors.SessionInfoForegroundColor -BackgroundColor $sl.Colors.SessionInfoBackgroundColor
Expand Down
2 changes: 1 addition & 1 deletion Themes/PowerLine.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Write-Theme {
}

$user = [System.Environment]::UserName
$computer = Get-ComputerName
$computer = [System.Environment]::MachineName
if (Test-NotDefaultUser($user)) {
$prompt += Write-Prompt -Object "$user@$computer " -ForegroundColor $sl.Colors.SessionInfoForegroundColor -BackgroundColor $sl.Colors.SessionInfoBackgroundColor
}
Expand Down

0 comments on commit 8d3d148

Please sign in to comment.