qnd:powershell_configruation

Powershell Configuration

A handy POSH configuration

set-alias exp explorer.exe
 
Set-PSReadLineOption -HistoryNoDuplicates
 
function h2 {
    notepad (Get-PSReadLineOption | select -ExpandProperty HistorySavePath)    
}
 
function h3 {
    code -n (Get-PSReadLineOption | select -ExpandProperty HistorySavePath)    
}
 
function hp { 
    Get-History |
    Out-GridView -Title "Press CTRL, select multiple and Hit OK" -OutputMode Multiple |
    ForEach-Object { 
        Write-Output "PS> $($_.CommandLine)"
        Invoke-Expression $($_.CommandLine) 
    }
}
  • qnd/powershell_configruation.txt
  • Last modified: 2021/05/21 15:05
  • by mgupton