Bash Keyboard Shortcuts Stickers
21–27 of 27 posts
Re: Bash Keyboard Shortcuts Stickers
#22Seasoned iTerm user? First off, what the heck is an iTerm? Oh, it's an open source Terminal.app replacement first released in 2002. http://iterm.sourceforge.net/history.shtml
Seasoned indeed! :)
Re: Bash Keyboard Shortcuts Stickers
#23 ^ is Ctrl
Alt is the alt/option key
Alt+F/B - Forward/Backward Word
^P - Prev command
^N - Next command
^XX - Toggle between beginning of line & current cursor positions
Alt+F/B - Forward/Backward Word
Alt+T/Esc+T - Swap current word with prev
^L - Clear screen
^H/^D - Backspace / Forward Delete Character
^W - Delete/Cut word before cursor
^K - Delete/Cut till End of Line
^U - Delete/Cut Line Before cursor
^Y - Paste last cut
Alt+U/L - UPPER/lower case word after cursor
^- - Undo
^Z - Stop the current process and send it to the background.
I don't know what these do -
Alt R -
^C -Re: Bash Keyboard Shortcuts Stickers
#24If anyone is wondering what the list of shortcuts are - ^ is Ctrl Alt is the alt/option key Alt+F/B - Forward/Backward Word ^P - Prev command ^N - Next command ^XX - Toggle between beginning of line & current cursor positions Alt+F/B - Forward/Backward Word Alt+T/Esc+T - Swap current word with prev ^L - Clear screen ^H/^D - Backspace / Forward Delete Character ^W - Delete/Cut word before cursor ^K - Delete/Cut till E…
This is not true. ^X^X is actually a well known for Emacs users command "exchange-point-and-mark" and it only skips to the beginning of line because that's where the mark is by default. You can set the mark yourself with C- anywhere on the line. From this point on pressing ^X^X will move your cursor to where you activated the mark, and move the mark to where your cursor was. That's pretty useful sometimes.
These two should be equivalent, I think, unless there is something strange going on:
Alt+T - Swap current word with prev
Esc+T Swap last 2 words with prev
C-c abandons current line without saving it in the kill ring and no matter where on the line you are. Faster than C-e C-u or C-a C-k.M-r (Alt R) works as if you pressed undo (C-/ or C-_) enough times to get back to the empty line.
I put a little cheatsheet for those things some time ago for my coworkers, it lives here: http://klibert.pl/readline.html
Re: Bash Keyboard Shortcuts Stickers
#25This should be called 'Readline keyboard shortcuts'. Because they are all handled by Readline and have nothing to do with Bash and are already supported by anything that also links to Readline.