PowerShell optimizations for faster project switching. Hardcoded path to work folder, but then just press Ctrl+f to navigate to that folder.
function GoToWork {
GoToPath -Path C:\work\
}
Set-Alias work -value GoToWork
Set-PSReadlineKeyHandler -Chord Ctrl+f -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::RevertLine()
[Microsoft.PowerShell.PSConsoleReadLine]::Insert('work')
[Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine()
}
Open .sln files in Visual Studio.
function OpenInVS() {
$file = Get-ChildItem *.sln | Select-Object -ExpandProperty Name
Invoke-expression ".\$file"
}
Set-Alias vs -value OpenInVS
Now if I could only get winsessionizer to work…