I have Github for Windows installed (Win7 x64). It also came with a handy shortcut that allowed launching a Git-optimized Powershell instance (which also displayed information such as the git file status in the prompt when in a tracked folder).
I deleted that shortcut a while ago and now I'm trying to restore it. I have found the script it was executing (shell.ps1 in the app folder), but trying to run it yields several rather ugly errors, such as:
Set-Alias : The AllScope option cannot be removed from the alias 'cat'.
At C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1:11 char:10
+ set-alias <<<< cat get-content
+ CategoryInfo : WriteError: (cat:String) [Set-Alias], SessionStateUnauthorizedAccessException
+ FullyQualifiedErrorId : AliasAllScopeOptionCannotBeRemoved,Microsoft.PowerShell.Commands.SetAliasCommand
I can simply use an alternative (like the msys shell), but I'm really curious as to why the PowerShell version isn't working.