Theocacao
Leopard
Design Element
Comment on "Ridiculously Useful Shortcuts Easily Forgotten"
by Juicymixx — Apr 04
for command line shortcuts in the terminal, if you use bash, then you can bind any key combo to any command using the command:
bind

so, I can (and do) bind commands and actions from common unix programs that I like to similiar shortcuts in terminal. For instance, I like the 'cut text' and 'uncut text' commands in nano/pico, so:

# give me remove/replace as in pico/nano
bind "\C-k":unix-line-discard ## CTRL-K to buffer a line
bind "\C-u":yank ## CTRL-U to paste in a line
Back to "Ridiculously Useful Shortcuts Easily Forgotten"
Design Element

Copyright © Scott Stevenson 2004-2015