Dup Goto 📝

EditingKeyBindings

PT2/aw/os/shell 07-31 13:46:42
To Pop
22 lines, 68 words, 340 chars Monday 2023-07-31 13:46:42

Emacs or Vi mode

For BashShell use

set -o emacs
set -o vi

For ZshShell use

bindkey -e # emacs
bindkey -v # vi

Emacs mode cheat sheet

Ctrl-A # go to start
Ctrl-E # go to end
Ctrl-K # cut from cursor to end of line
Ctrl-Y # paste

Vi mode cheat sheet

Basically it works like vi.