Skip to content

Instantly share code, notes, and snippets.

@elacy
elacy / Run
Last active August 12, 2018 12:16
Boxstarter
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/elacy/1d1762ee7885489bfa0420a6de4cdcce/raw/boxstarter
$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