💾 Archived View for gemini.susa.net › bash_readline_keys.gmi captured on 2023-04-26 at 13:16:08. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Mostly taken from https://readline.kablamo.org/emacs.html
For detailed information see the GNU Readline library manual or type man readline.
For information about Readline in Bash type man bash and search for ^READLINE or Commands for moving.
Ctrl-a Move to the start of the current line. Ctrl-e Move to the end of the line. Ctrl-f Move forward a character. Ctrl-b Move back a character. Alt-f Move forward to the end of the next (alphanum) word. Alt-b Move back to the start of the current or previous word. Ctrl-l Clear the screen.
Ctrl-p Fetch the previous command from the history list. Ctrl-n Fetch the next command from the history list. Alt-< Move to the first line in the history. Alt-> Move to the last line in the history. Ctrl-r Search backward through history. Ctrl-s Search forward through history. Alt-p Search backward through history for a given string. Alt-n Search forward through history for a given string.
Ctrl-d Delete the character under the cursor. Delete Delete the character before the cursor. Ctrl-v Add the next character you type verbatim. Ctrl-t Transpose characters. Alt-t Transpose words.
Tab Autocomplete. Alt-? List possible completions. Alt-* Insert possible completions.
Ctrl-g Abort current editing command Ctrl-_ Incremental undo (also Ctrl-x Ctrl-u) Alt-r Revert line to its initial state Ctrl-Alt-j Enter Vi editing mode