Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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 W. Jul 7 '12 at 15:21
add comment

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.