Skip to content

Commit

Permalink
We can't entirely skip PS Core on Windows, may run in diff host
Browse files Browse the repository at this point in the history
Keep this PR simple in scope - just the deferred Add-Type.
After a chat w/lzybkr we may want to convert some of this to a binary
to help import/prompt processing time.
  • Loading branch information
rkeithhill committed Nov 3, 2018
1 parent 3a27e74 commit 0a48392
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ConsoleMode.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Hack! https://gist.github.com/lzybkr/f2059cb2ee8d0c13c65ab933b75e998c

# We do not need to set the console mode in PowerShell Core on any platform.
# On Windows, PowerShell Core added this support in this PR:
# https://github.com/PowerShell/PowerShell/pull/2991
if ($PSVersionTable.PSVersion.Major -ge 6) {
if ($IsWindows -eq $false) {
function Set-ConsoleMode {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessForStateChangingFunctions", "")]
param()
Expand Down

0 comments on commit 0a48392

Please sign in to comment.