wbond / sublime_terminal

Launch terminals from the current file or the root project folder
https://packagecontrol.io/packages/Terminal
MIT License
600 stars 117 forks source link

Terminal Launch with ZSH #179

Closed eleonorsomosot closed 7 years ago

eleonorsomosot commented 7 years ago

I have recently configured my gnome-terminal to use zsh. However, whenever I open terminal through key binding or "Open Terminal Here.." option it does not open from the selected directory it was launched from. This happened after I installed zsh.

twolfson commented 7 years ago

How did you configure gnome-terminal to use zsh?

eleonorsomosot commented 7 years ago

I followed this article https://ubuntuusertips.wordpress.com/2012/09/12/the-command-line-bash-or-zsh/

twolfson commented 7 years ago

Hm, that looks like everything should work properly. We use declaring the cwd as a parameter to change where our terminal launches:

https://github.com/wbond/sublime_terminal/blob/1.18.0/Terminal.py#L172

What happens when you run gnome-terminal in a folder like /etc in an existing terminal instance?

eleonorsomosot commented 7 years ago

it launches new terminal window on default directory.

twolfson commented 7 years ago

It sounds like an issue in either gnome-terminal or zsh. Since you said bash was working previously, I'm guessing a zsh plugin or your .zshrc is set up to navigate back to the home directory. My suggestion is to binary search to see what's causing it, i.e.:

I'm going to close this issue as it's unrelated to Terminal but feel free to ask more questions

eleonorsomosot commented 7 years ago

Thanks a lot. Will definitely try your instructions and get back to you whenever.

eleonorsomosot commented 7 years ago

It seems that I have checked the "Run command as a login shell" and "Run a custom command instead of my shell" options. Unchecking those solved my issue. Thanks once again for the assistance @twolfson.

twolfson commented 7 years ago

Ah, I didn't see those options in my gnome-terminal. Glad to hear you got it working =)