Created
August 22, 2019 09:07
-
-
Save erenard/3f98a3b3862cf621f9eda321dcd7215f to your computer and use it in GitHub Desktop.
Powershell configuration for chocolatey, git and npm
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
Import-Module posh-git | |
Import-Module TabExpansionPlusPlus | |
Import-Module NPMTabCompletion | |
# Set up a simple prompt, adding the git prompt parts inside git repos | |
function global:prompt { | |
$realLASTEXITCODE = $LASTEXITCODE | |
Write-Host($pwd.ProviderPath) -nonewline -ForegroundColor green | |
Write-VcsStatus | |
$global:LASTEXITCODE = $realLASTEXITCODE | |
return "`n> " | |
} | |
# SSH startup | |
Start-SshAgent -Quiet | |
# Chocolatey profile | |
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
if (Test-Path($ChocolateyProfile)) { | |
Import-Module "$ChocolateyProfile" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment