Add custom shortcut to the GNOME Terminal

As a workaround I could achieve this by the mix of

  1. Is it possible to achieve autocomplete to predifined text in gnome-terminal?
  2. Custom Keyboard Shortcut
  3. xdotool

Steps

  1. Created a alias for ls -l as ls in ~/.bashrc file:

    screenshot

  2. To type ls and a key press of Enter, used xdotool sleep 1 key l s Return as a command for custom keyboard shortcut:

    screenshot

  3. Result, when I press the shortcut key combo:

    screenshot