Re: setting prompt in bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/03/03 12:08 PM -0500, ddunfee@xxxxxxxxxxxx wrote:
> 
> Could someone please provide an example of the command to set the prompt in
> a bash shell?  Also, does it go into sh_profile or bash_profile or some
> other file?

You can set your prompt with PS1='some prompt$ '. This can be in your
.profile, .bash_profile, .bashrc, .bash_login, and /etc/profile
depending on your system. If you do man bash and then search for PS1 you
can find out what backslash escapes work in the prompt string. If you
put it in a file make sure to export the PS1 variable with export PS1.

> 
> Thanks
> 
> 
> 
> _______________________________________________
> 
> Blinux-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/blinux-list

-- 
Unix is a user friendly operating system. It just picks its friends more
carefully than others.
Thomas Stivers	e-mail: stivers_t@xxxxxxxxxxxxxxxxx	gpg: 45CBBABD



_______________________________________________

Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]