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

In on OS X, you can choose the (for me) useful behavior of new tabs opening in the same working directory. On Mavericks, (and maybe other versions), setting PROMPT_COMMAND disables new tabs from opening in the same working directory. How do I restore that functionality?

This feels like more of a SuperUser question, but feel free to suggest I migrate over to AskDifferent.

share|improve this question

It turns out that folks developing the liquid prompt project noticed and found the solution, which is that setting PROMPT_COMMAND seems to disable the execution of update_terminal_cwd:

basically, you can just add something like:

fish_style_dir_cmd='CurDir=`pwd|sed -e "s!$HOME!~!"|sed -Ee "s!([^/])[^/]+/!\1/!g"`'
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.