-
-
Notifications
You must be signed in to change notification settings - Fork 821
Closed
Milestone
Description
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-gitrather thanJoin-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-Hostin 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.
jonathankarsh, dahlbyk, drusellers, andyleejordan, eamodio and 4 more