4 ms·
I've been using the new terminal for a while now. I was missing emacs key bindings I thought it was because of the terminal. It turned out it just wasn't enable
by emmanueloga_ 7y ago
I've been using the new terminal for a while now. I was missing emacs key bindings I thought it was because of the terminal. It turned out it just wasn't enabled on powershell:
Set-PSReadLineOption -EditMode Emacs
1: https://stackoverflow.com/questions/43295639/update-powershell-keyboard-bindings-to-be-emacs-style-like-bash-shell https://stackoverflow.com/questions/43295639/update-powershe...
- vips7L 7y agoI would also suggest to set your tab completion to MenuCompletion.
- lukeschlather 7y agoThis is what I do to make my bash muscle memory happy: if ($host.Name -eq 'ConsoleHost') { Import-Module PSReadLine Set-PSReadLineOption -EditMode Emacs Set-PSReadLineKeyHandler -Key 'Ctrl+V' -Function Paste Set-PSReadLineKeyHandler -Key 'Ctrl+v' -Function Paste Set-PSReadLineKeyHandler -Key 'Ctrl+/' -Function Undo Set-PSReadLineKeyHandler -Key 'Ctrl+Backspace' -Function BackwardKillWord Set-PSReadLineKeyHandler -Key 'Ctrl+LeftArrow' -Function BackwardWord Set-PSReadLineKeyHandler -Key 'Ctrl+RightArrow' -Function ForwardWord }