Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anyway to get oh-my-zsh and Terminal to load up my last used directory?

For example I cd into ~/Desktop then close my terminal. I'd like it to open back up into the ~/Desktop folder.

share|improve this question
up vote 2 down vote accepted

There is an oh-my-zsh plugin that allows this called terminalapp.

Edit your .zshrc file, and go to the plugins= line and add in terminalapp. For example, plugins=(git terminalapp).

Then just restart your shell.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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