4

When I start a new zsh session it always seems to set its working directory to the last-known working directory of any other zsh session running on my system. Is there a way to configure zsh to just start at $HOME?

For example, sometimes I get into really slow directory shared over the network or something and I'd like to open a new shell and do something else, but I can't do anything else because my new session is too busy trying to set its working directory to that slow path on the network.

  • 2
    That's not the default behavior. What is in your ~/.zshrc? – mpy Sep 17 '13 at 20:12
  • Are you running under tmux or screen? – jjlin Sep 17 '13 at 20:43
  • tmux need more chars for valid comment – mgalgs Sep 18 '13 at 0:54
  • Maybe it's oh-my-zsh... Let me do some experiments... – mgalgs Sep 18 '13 at 0:54
4

Doh! Turns out it was the last-working-dir plugin from oh-my-zsh. Removing that from my plugins array "fixed" it.

| improve this answer | |

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.