Is there a way to bind hotkeys to textual commands in the terminal? For example:
ctrl+b == git branch <ret>
|
|
|||
|
|
|
You can use the bash In your case, the command would be:
To make it stick from session to session then add it to your Bash bind reference. (also available as |
|||||
|
|
A program like xmacro may be of help:
See this question and its answer for more details. |
|||
|
|
|
Instead of a hotkey, how about a bash alias? For example:
now It is in a way much better than a hotkey, since you can still add other options to your command before hitting enter. For example:
... and so on. To make this alias permanent, add it to the end of your You can check if a given command is already assigned to an alias, program, function or builtin using
Last but not least, it is also worth checking availability for commands that does not exist in your system, but may exist in Ubuntu's repositories:
This way your alias don't shadow any (current or future) command |
|||||||||||
|
|
Sure. The best way would be to:
|
|||||||||||
|
