Skip to content

Instantly share code, notes, and snippets.

@andybp85
Last active August 7, 2019 17:54
Show Gist options
  • Save andybp85/f0665dd5e90f04b459173dff2e74063e to your computer and use it in GitHub Desktop.
Save andybp85/f0665dd5e90f04b459173dff2e74063e to your computer and use it in GitHub Desktop.
# choco install fzf; Install-Module PSReadline; Install-Module PSFzf
Import-Module PSReadline
Remove-PSReadlineKeyHandler 'Ctrl+r'
Import-Module PSFzf
# choco install poshgit
Import-Module 'C:\tools\poshgit\dahlbyk-posh-git-9bda399\src\posh-git.psd1'
$GitPromptSettings.DefaultPromptPrefix = '`n'
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
$GitPromptSettings.DefaultPromptSuffix = '`n$([DateTime]::now.ToString("MM-dd HH:mm:ss")) > '
Set-Alias ssh-agent "$env:ProgramFiles\git\usr\bin\ssh-agent.exe"
Set-Alias ssh-add "$env:ProgramFiles\git\usr\bin\ssh-add.exe"
Start-SshAgent -Quiet
New-Alias -Name g -Value "$Env:ProgramFiles\Git\bin\git.exe"
New-Alias -Name n -Value "npm"
cd ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment