Click to See Complete Forum and Search --> : Changing the prompt


teknogod
01-07-2001, 10:50 PM
How do i change the prompt in a *nix system? In DOS its prompt [text]. Thankx

wmHardRock
01-07-2001, 10:58 PM
export PS1="TEXTHERE"

By the way, this was explained very clearly in the bash manual page. If you don't know what I'm talking about, here's the deal: there's a command called man that gives you documentation about a certain topic. man bash gives you documentation about bash. Using the search forward command (/texttofind then n to find the next occurances), you could've looked for prompt and you would have found your answer. Next time you post here, try to at least read a little, sometimes you'll find the answer yourself.

demian
01-07-2001, 11:02 PM
Originally posted by teknogod:
In DOS its prompt [text].
You will not believe how grateful I am for this info http://www.linuxnewbie.org/ubb/wink.gif

Anyway, head over (http://www.linuxlookup.com/html/articles/custom-prompts.html) to LinuxLookup.com. They have an article on shell prompt customization.

teknogod
01-07-2001, 11:13 PM
Sorry. And thank you.

mdwatts
01-08-2001, 08:32 AM
There's also a Bash-Prompt HOW-TO. Probably installed on your system.