mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
feat: support Powershell 5
This commit is contained in:
parent
870af53d35
commit
732035dfa1
|
@ -21,7 +21,7 @@
|
|||
# Description of the functionality provided by this module
|
||||
Description = 'A prompt theme engine for any shell'
|
||||
# Minimum version of the Windows PowerShell engine required by this module
|
||||
PowerShellVersion = '6.0'
|
||||
PowerShellVersion = '5.0'
|
||||
# List of all files packaged with this module
|
||||
FileList = @()
|
||||
# Cmdlets to export from this module
|
||||
|
|
|
@ -20,7 +20,7 @@ function Get-PoshCommand {
|
|||
}
|
||||
|
||||
# Set the right binary to executable before doing anything else
|
||||
if (!$IsWindows) {
|
||||
if ($PSVersionTable.PSEdition -eq "Core" -and !$IsWindows) {
|
||||
$executable = Get-PoshCommand
|
||||
Invoke-Expression -Command "chmod +x $executable"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue