Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 Terminal.app 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:

https://github.com/nojhan/liquidprompt/issues/196

basically, you can just add something like:

fish_style_dir_cmd='CurDir=`pwd|sed -e "s!$HOME!~!"|sed -Ee "s!([^/])[^/]+/!\1/!g"`'
PROMPT_COMMAND="update_terminal_cwd;$fish_style_dir_cmd"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .