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
by Juicymixx — Apr 04
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