man readline
Checks
Check your editing mode
# set -o | egrep '^vi | ^emacs'
Check your current key bindings:
# bind -p | grep \[CM]
ShorcutsCtrl+a: Move to the start of the current lineCtrl+e: Move to the end of the current lineCtrl+f: Move forward a characterCtrl+b: Move back a characterEsc f: Move forward to the next wordEsc b: Move back to the previous wordCtrl+l: Clear the screen leaving the current lineCtrl+p: Fetch the previous command from the history listCtrl+n: Fetch the next command from the history listEsc <: Move to the first line in the historyEsc >: Move to the line currently being enteredCtrl+r: Search backward starting at the current line and moving up (Ctrl+r)Esc #arg Esc Ctrl+y: Insert #arg to the previous commandEsc .: Insert the last argument to the previous commandCtrl+d: Delete the character at pointCtrl+t: Transpose charactersEsc t: Transpose wordsEsc u: Uppercase the current wordEsc l: Lowercase the current wordEsc c: Capitalize the current wordCtrl+k: Kill the text from point to the end of the lineCtrl+u: Kill the text from point to the beginning of the lineEsc d: Kill from point to the end of the current wordCtrl+w: Kill the word behind pointCtrl+y: Yank the top of the kill ringEsc y: Rotate the kill ringCtrl+_: Incremental undo, separately remembered for each lineEsc r: Undo all changes made to this lineCtrl+]: Search forward a characterEsc Ctrl+]: Search backward a characterEsc #: Insert a commentEsc #arg character: Insert #arg times the character
No comments:
Post a Comment