2

I don't wish to open terminal each time to execute my shell script. Is it possible assign a keyboard shortcut to execute the shell script I have created?

2

1 Answer 1

10
  • Go to System Settings -> keyboard -> shortcuts.
  • Click on + to add a custom shortcut.Name it anything.
  • In the command box type gnome-terminal -e "path_of_script". Make sure your script has executable permission.

Also if you want your gnome-terminal should remain open after executing the script, add read at the last of your script.

1
  • 4
    Thanks. I got the same answer. But You don't really need to type the gnome-terminal stuff into the command box. Instead just specify the path. It works! :) Sep 18, 2014 at 8:47

Not the answer you're looking for? Browse other questions tagged .