For Ctrl+A to move to the beginning of the line:
Set-PSReadLineKeyHandler -Key "Ctrl+a" -Function BeginningOfLineCode language: JavaScript (javascript)
To have Up Arrow autocomplete from command history:
Set-PSReadLineKeyHandler -Chord UpArrow -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()
}Code language: PHP (php)