oh my zsh overwrites terminal start directory
Completed
I have an oh my zsh plugin active that remembers the last working directory, and opens the shell to that directory. This interferes with Ruby Mine opening the built in terminal to the current project's directory. I'd prefer to keep that plugin active for terminals outside of Ruby Mine. Is there anyway to access the Start directory variable from a zsh or bash script?
Please sign in to leave a comment.
Hello, Michael,
could you please check how it goes in case you disable 'Shell integration' in Settings -> Terminal (looks related to https://youtrack.jetbrains.com/issue/IDEA-163404).
I fixed the issue by exporting START_DIRECTORY in my main .zshrc, and cding to it before tmux starts up.
.zshrc
.ZSH_CUSTOM/.customizations