Created
January 8, 2015 10:34
-
-
Save michelc/a63cbb9f400ad1525288 to your computer and use it in GitHub Desktop.
Mon fichier C:\Users\nom.prenom\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
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
# 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