3

I'm not sure if this is default behavior for mate-terminal. When I cd into a directory and then open a new terminal tab, it opens in the same folder.

I'd like this to default to home instead of the previous folder open.

How can I achieve this?

EDIT - I don't think this is a duplicate of How can I start gnome-terminal at a particular directory? the difference is that I'm not starting a new terminal. If I open a fresh terminal it opens to $HOME which is what that question answers and how I expect it to behave. This question deals with new tabs.

4

Using a custom command for your mate-terminal profile, eg:

sh -c "cd your_folder; exec bash"

Replace your_folder with your preferred folder and bash with your shell if you need another one than bash

enter image description here


The terminal in action

enter image description here

enter image description here

enter image description here


If you made a mistake use dconf-editor to correct your problem:

sudo apt-get install dconf-editor

Start dconf-editor and navigate to org.mate.terminal.profiles and change the values for custom-command and use-custom-command

enter image description here

  • 1
    @kos Yes, tested. – A.B. Jul 27 '15 at 11:23
  • For that reason, my users are named fab-user and fab-root ;-) – Fabby Jul 28 '15 at 8:02
  • Thanks, only small change was to use zsh instead of bash – digital Jul 28 '15 at 19:01
  • @digital How funny, I also use zsh and have it specially modified. – A.B. Jul 28 '15 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.