Skip to content

PowerShell Core on Linux support #302

@theaquamarine

Description

@theaquamarine

Issues I've found running posh-git on OS X:

  • Path separators are a known issue in PowerShell on Linux: only forward slashes are supported (https://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md#directly). profile.example.ps1 uses .\posh-git rather than Join-Path . posh-git. Failing that, swapping to forward slash would work as they are supported everywhere.
  • Administrator check in GitPrompt.ps1:98 doesn't work as [Security.Principal.WindowsIdentity]::GetCurrent() is unsupported.
  • GitUtils.ps1:226 doesn't work for setting env variables, as [EnvironmentVariableTarget] is unavailable. We use Process, which is the default, so could skip this.
  • The prompt shows up twice. This isn't actually our fault, there's an issue with using Write-Host in the prompt on OS X/Linux. Tracked upstream at Powershell Prompt Double Execution PowerShell/PowerShell#1897
  • Actual ssh-agent support could probably be better. ssh-agent always runs OS X 10.5+ and uses Keychain as storage so I'm not sure how much posh-git actually needs to manage agent/keys on OS X.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions