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
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/elacy/1d1762ee7885489bfa0420a6de4cdcce/raw/boxstarter |
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
$HistoryFilePath = Join-Path ([Environment]::GetFolderPath('UserProfile')) .ps_history | |
Register-EngineEvent PowerShell.Exiting -Action { Get-History | Export-Clixml $HistoryFilePath } | out-null | |
if (Test-path $HistoryFilePath) { Import-Clixml $HistoryFilePath | Add-History } | |
# if you don't already have this configured... | |
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward | |
# Load posh-git example profile | |
. 'C:\code\posh-git\profile.example.ps1' | |
cd c:\code |