Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My prompt in Terminal currently looks like:

Dzulhelmis-MacBook-Pro:~ myusername$

I want it to be as short as possible, maybe at least no hostname there. How do I change my bash prompt?

share|improve this question

1 Answer

Check out this tutorial on how to change your bash prompt. A very short version (only username and no current path): PS1="\u$ "

Result: myusername$ cat something.log

share|improve this answer
It works, now the problem is it will not save the new bash prompt. It will show the old one after i shut down my mac. Why? – DzulFriday May 15 '12 at 2:07
1  
Did you put the variable in the following file: /Users/<yourusername>/.bash_profile? – timbooo May 15 '12 at 15:34

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.