Created
February 9, 2012 12:52
-
-
Save AbraaoAlves/1779808 to your computer and use it in GitHub Desktop.
Git for power shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Com git instalado, via powershell: | |
#antes de executar o ps1: Set-ExecutionPolicy Unrestricted | responder S | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\bin")) | |
{ | |
$env:path += ";C:\Program Files (x86)\Git\bin"; | |
} | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\cmd")) | |
{ | |
$env:path += ";C:\Program Files (x86)\Git\cmd"; | |
} | |
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex | |
install-module posh-git | |
cd $env:UserProfile\Documents\WindowsPowerShell | |
.\Microsoft.PowerShell_profile.ps1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment