0

Open a terminal in your working directory with a keyboard shortcut in Ubuntu

I was so sick and tired navigating to my development directory each time I opened a new terminal window that I decided to do something about it.

I discovered that you can create custom keyboard shortcuts in System Settings -> Keyboard ->Shortcuts. So I created one using the following details:

    1. Firstly open System Settings and select Keyboard from under Hardware:

      System Settings Keyboard

      System Settings Keyboard

  1. When in Keyboard select the Shortcuts tab:

    Keyboard Shortcuts Tab

    Keyboard Shortcuts Tab

  2. Click on Custom Shortcuts and select the plus (+) sign to create a new custom shortcut:

    Keyboard Shortcuts List

    Keyboard Shortcuts List

  3. In the dialogue that appears, input a name for your shortcut, then in the command field input your command, i.e.
    gnome-terminal --working-directory=<path to folder you want to open>

    Then hit apply.

    Custom Shortcut Dialogue

    Custom Shortcut Dialogue.

  4. Then back in the keyboard dialogue select the shortcut youve just created and click over the shortcut area, “Create new accelerator” will appear. Press the keys you would like to use as the shortcut. (I suggest Shift+Alt+J“. This shortcut will now be set.

    Creating The Shortcut

    Creating The Shortcut.

Subscribe to my feed either by E-mail or by RSS to receive updates as they happen.

Can you improve on any of the tips I’ve discussed here? If you can let me know in the comments.

Jason Edwards