Skip to content
Christos Gkantsidis edited this page Feb 18, 2017 · 1 revision

The scripts enable Emacs-style bindings. Some useful key bindings to have in mind:

Key Binding Description
Alt+D Delete current word
Shift+Alt+B Select word backwards
Shift+Alt+F Select word forwards
Alt+( Put parenthesis around line, or selection (if there is something selected)
                 | (cmder binds the same keys to the 9th task; you may consider removing the binding)

Ctrl+Q | Tab complete next (similar to default) Ctrl+Shift+Q | Tab complete previous (similar to default tab) Alt+' | Toggle comments on the argument under the cursor Alt+W | Save current line in history but do not execute Ctrl+B | Build the current directory Ctrl+Shift+j | Mark current directory and assign it to key (similar to Push-Location .) Ctrl+j | Change back to directory assigned to key Alt+j | Show the directory marks F7 | Command history F1 | Command help

To delete an entire selection, use Del and not Backspace.

To see the complete list of bindings use:

Get-PSReadLineKeyHandler       
Clone this wiki locally