Skip to content

Instantly share code, notes, and snippets.

@michelc
Created January 8, 2015 10:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelc/a63cbb9f400ad1525288 to your computer and use it in GitHub Desktop.
Save michelc/a63cbb9f400ad1525288 to your computer and use it in GitHub Desktop.
Mon fichier C:\Users\nom.prenom\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# Update with PowerShell:
# PS> notepad $profile
# Use Git and Posh-Git from GitHub for Windows
# Source: http://blog.somewhatabstract.com/2014/09/01/getting-posh-git-in-all-your-powershell-consoles-using-github-for-windows/
# Add paths for Git and Posh-Git from GitHub for Windows
# - (git)\cmd => gives access to "git.cmd"
# - (git)\bin => gives access to "ssh-agent.exe"
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
# Load Posh-Git example profile
. (Resolve-Path "$env:github_posh_git\profile.example.ps1")
# Add an empty line before Posh-Git prompt
rename-item function:prompt prompt_pg
function global:prompt {
Write-Host("")
prompt_pg
}
# Set page code to get french accents with Ruby
# http://blog.pagesd.info/post/2012/12/18/windows-powershell-ruby-accents
chcp 1252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment