I was wondering is it possible to bind say F5 to output
sudo apt-get update so I can press one key to write this into the terminal?
Add the following to `~/.inputrc":
The character sequence to put in the beginning can be gotten by using
Try using this to assign shortcuts:
So now if you type "update" (without the quotes) in the terminal it will automatically run update. "alias" is not needed unless you are assigning the shortcut.
Remember one thing though; try the shortcut name in the command line first to make sure it is not already a terminal command.
"install" is already a terminal command itself, this is why agi was used.
I just came across your post and it is quite a bit late for my response, but maybe this will help others if you see this response or not.