I have set in my ~/.emacs.d/init_bash.sh:

export PS1='\h:\w$ '

without it, my prompt is


but now it is

bash-3.2$ computername:~/path/to/directory$

How do I make it just be




You're simply seeing the initial prompt, followed by a new one after your script has run.

The new prompt should be all you see from that point.

Try pressing RET ?

  • Yep, you're right. Any idea how to get rid of it? – hatmatrix Jan 15 '15 at 1:44
  • Nope. It doesn't seem like much of a problem, really? – phils Jan 15 '15 at 1:49
  • I suppose not . – hatmatrix Jan 15 '15 at 3:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.