On Wed, 26 Jan 2000, you wrote:
Hi,
Where would I put the Linux equivalent to the above dos statement in order
to get a prompt showing the current directory ($p) and the greater than
($g) symbol? Is there some documentation as to all of the options I can
put into my bash prompt?
man bash
Not really.
SET is when you want to set a variable of some sort that isn't seen to the
user. Only to the shell.
The export command is something that the user will see and the shell will
recognize:
example:
export PS1= this would set your primary prompt
export alias = export that alias.
or
you guys are awesome... thanks for the responses everyone
so
export
in linux is analogous to
set
in dos?...
if it's more complicated than that just let me know and i'll go to the
docs.
Thanks Again
Andy
On Wed, 26 Jan 2000, Andy Thomas wrote:
Where would I put the Linux equivalent to the above dos statement in order
to get a prompt showing the current directory ($p) and the greater than
($g) symbol? Is there some documentation as to all of the options I can
put into my bash prompt?
(you
David Nordlund wrote:
On Wed, 26 Jan 2000, Andy Thomas wrote:
Where would I put the Linux equivalent to the above dos statement in order
to get a prompt showing the current directory ($p) and the greater than
($g) symbol? Is there some documentation as to all of the options I can
put
On Thu, 27 Jan 2000, Andy Thomas fingered:
Hi,
Where would I put the Linux equivalent to the above dos statement in order
to get a prompt showing the current directory ($p) and the greater than
($g) symbol? Is there some documentation as to all of the options I can
put into my bash prompt?
in /etc/bashrc, look for the line that says PS1 and set it to the following:
PS1="\u \w "
That will give you something like:
jsmith /etc/rc.d _
the next time you login.
-id
y