Shortcuts
Keyboard shortcuts for ZSH.
Move cursor
Ctrl + amove to the beginning of the lineCtrl + emove to the end of the line
Alter current command
Ctrl + udelete entire lineCtrl + kdelete to end of the line.Ctrl + hdelete one char to the leftCtrl + ddelete one char to the rightCtrl + wdelete one word to the left.Alt + ddelete one word to the right.Ctrl + lclear the terminal.Ctrl + xeopen the text editor to edit the line
Undo
Ctrl + _undo the last edit
Action
!!execute the last command in history!abcexecute the last command in history beginning with abc
Screen
Ctrl + lclear screenCtrl + sstop screen outputCtrl + qresume screen output
History
Ctrl + rreverse search in historyCtrl + sforward search in history