Bash: call script with customized keyboard shortcuts?
问题 Lets say I have a script, " myscript.sh ", with contents being simply echo $PWD . I'd like to bind somehow this script to a key combo in bash ( gnome-terminal ) - so that when I press this key combination, the output of " myscript.sh " is inserted ("pasted") at the cursor position in the terminal. Apparently, bash history and line manipulation is handled by readline - and the references I got for bash keyboard shortcuts, do reference readline : bash keyboard shortcuts Bash Reference Manual: