3 ms·
I recommend reading and memorizing all 30-ish of the readline shortcuts https://tiswww.case.edu/php/chet/readline/readline.html#SEC13 https://tiswww.case.edu/p
by shpx 8y ago
I recommend reading and memorizing all 30-ish of the readline shortcuts
https://tiswww.case.edu/php/chet/readline/readline.html#SEC13 https://tiswww.case.edu/php/chet/readline/readline.html#SEC1...
Readline is the library bash uses for editing the input line, and it has some nice movement keys. For example Alt-b moves the cursor back a word, Ctrl-u deletes to the beginning of the line, Ctrl-w removes one word behind the cursor.
They work in a bunch of other programs, like the Python interpreter's interactive mode for example.
- Tepix 8y agoExcellent advice! Thanks.