Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I would like to run the script

PS1="┌─[\u@\h:]\n└─> "

In the terminal every time it's opened, but I can't figure out how to.

share|improve this question
up vote 2 down vote accepted

Put export PS1="┌─[\u@\h:]\n└─> " at the end of your ~/.bashrc file.

This should get run automatically with each terminal session, assuming your terminal uses bash and not zsh or something else

share|improve this answer
You sir, are a god. – Zelpa Jul 7 '12 at 14:13
Heh. You can call me a God if you want, @Zelpa, but I'm just a Lord. A Lord of Time. :P That, and ~/.bashrc is the local file where various things are done for an individual user whenever bash gets launched, including but not limited to setting PS1. – Thomas Ward Jul 7 '12 at 15:21

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.