Ask Different is a question and answer site for power users of Apple hardware and software. 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

So I tried to change the output of my terminal prompt but when I try something like /W it just puts the /W not the path. For example export PS1="/W $ "turns my prompt into "/W $"

share|improve this question
up vote 4 down vote accepted

It needs to be \W, with a backslash.

share|improve this answer

That should be a backslash, not a slash: \W.

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.