5

I'm using Github for windows for a non-github project and I am using its powershell prompt.

I'd like to configure visual studio to use the same prompt (via package manager).

I'd also like to not have to install poshgit separately and maintain 2 installations as the github one has pretty much the exact settings I want.

I've seen it is possible to modify the profile that nuget uses for its powershell prompt but I cant find where GH4W stores its settings for poshgit.

Is there an easy way to accomplish this?

Daniel Powell
  • 8,143
  • 11
  • 61
  • 108
  • I'm confused. "Posh-git" is one of the Spice Girls, right? Is GH4W is one of the robots from Star Wars? Or is it a cable TV channel specializing in video games? SUGGESTION: do a filesystem search for ".gitattributes". – paulsm4 Nov 02 '12 at 03:32

2 Answers2

3

Try putting this in your NuGet_profile.ps1:

. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
. $env:github_posh_git\profile.example.ps1
dahlbyk
  • 75,175
  • 8
  • 100
  • 122
0

I'd turn the problem sideways, so I would make GitHub for Windows use the same Powershell prompt that Visual Studio does. Based on my experiences with Visual Studio and with git, I think that would be the easier task and the task more likely to succeed.

Mark Leighton Fisher
  • 5,609
  • 2
  • 18
  • 29