Add custom shortcut to the GNOME Terminal
As a workaround I could achieve this by the mix of
- Is it possible to achieve autocomplete to predifined text in gnome-terminal?
- Custom Keyboard Shortcut
xdotool
Steps
-
Created a alias for
ls -l
asls
in~/.bashrc
file: -
To type ls and a key press of Enter, used
xdotool sleep 1 key l s Return
as a command for custom keyboard shortcut: -
Result, when I press the shortcut key combo: