Remove Platform module

This commit is contained in:
Andrew Schwartzmeyer 2016-04-08 15:11:33 -07:00
parent 822244d261
commit fffaf4cfe2
3 changed files with 0 additions and 20 deletions

View file

@ -1,5 +1,3 @@
function prompt {
"PS " + $(get-location) + "> "
}
Import-Module Microsoft.PowerShell.Platform

View file

@ -1,18 +0,0 @@
# Use the .NET Core APIs to determine the current platform; if a runtime
# exception is thrown, we are on FullCLR, not .NET Core.
try {
$Runtime = [System.Runtime.InteropServices.RuntimeInformation]
$OSPlatform = [System.Runtime.InteropServices.OSPlatform]
$IsCore = $true
$IsLinux = $Runtime::IsOSPlatform($OSPlatform::Linux)
$IsOSX = $Runtime::IsOSPlatform($OSPlatform::OSX)
$IsWindows = $Runtime::IsOSPlatform($OSPlatform::Windows)
} catch [System.Management.Automation.RuntimeException] {
$IsCore = $false
$IsLinux = $false
$IsOSX = $false
$IsWindows = $true
}
Export-ModuleMember -Variable IsCore, IsLinux, IsOSX, IsWindows