Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.