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

Commit 5080d38

Browse files
pavelbraginskiyJanDeDobbeleer
authored andcommitted
Comply with POSIX
All Linux and Mac systems have `hostname`, but `uname -n` will continue working if PowerShell is released on other POSIX systems.
1 parent b43b113 commit 5080d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helpers/Prompt.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Get-ComputerName {
3838
if ($env:NAME) {
3939
return $env:NAME
4040
} else {
41-
return (hostname)
41+
return (uname -n)
4242
}
4343
}
4444
return $env:COMPUTERNAME

0 commit comments

Comments
 (0)