[GLLUG] Custom Prompt in FC3

Basher584 basher584 at basher584.org
Wed Feb 23 18:50:09 EST 2005


On Mon, Feb 21, 2005 at 08:04:14PM -0500, Thomas Alan Hearn wrote:
> 
> I have been trying to set a custom prompt in Fedora Core 3 running gnome 
> and the default terminal.  I tried editing the .bash_profile, .chsrc, and 
> .tchsrc files to no avail.  Anyone know what file you are supposed to edit 
> in the default terminal to create a custom prompt?  I am using the 
> following commands: 
> 
> PATH=$PATH:$HOME/bin:./:. 
> 
> setenv PATH ${PATH}:. 
> 
> set prompt="<\! 'uname -n':'dirs'>" 
> 
> export PATH
> export prompt
> unset USERNAME 
> 
> Any ideas?

If you're using bash as your shell, then setting and exporting PS1 in your $HOME/.bashrc file should work.  Looking at the /etc/bashrc file it looks like you can set the default bash prompt in /etc/sysconfig/bash-prompt-default, but I don't know what format its looking for.

-Ben



More information about the linux-user mailing list