According to Steve Hodson: While burning my CPU.
> 
> I am trying to get RH6.0/2.2.5-15 to give me a good prompt, but nothing
> that I do seems to 'stick' in the way of set-prompt in the .bashrc file.
> The alias's work, but modifying the prompt simply returns no changes.
> (it seems that pasting from my KDE editor won't work with NSCP mail.)
> 
> I have set prompt=\['id -nu'@'hostname -s'\]\#\  for the default. The \w
> command is what I would like to get into the line, as well as the time,
> and doing some reading, found this to work: PS1="[\t]:[\u][\w]$> "

You can use all sorts of combinations, like the one underneath, its about
the same as your example.

PS1="[\t] [\w] "`id -nu`@`hostname -s`" > "

The above returns;

[22:41:02] [/usr/src] root@pa3gcu >

In between the inverted commas you could add any text you want like;

PS1="[\t] [\w] "`id -nu d -nu`@`hostname -s`" Command Please > "

You can do just about anything you can think of, even play a "au" file or
wav file of you choise.

You can even remove the brackets which produces;

22:49:58 /etc root@pa3gcu Command Please >

I suggest you read 'man bash' and if you require i could send you a file
on "UNIX Bourne Shell Programming" its a simple document with simple
examples, but is very helpfull indeed. Let me know, its a zip file and is
119315 bytes.


> 
> Where can I find info on the bash commands, mostly the set prompt one,
> or could someone here lend a hand?
> 
> I am also finding the caps lock is not on when running KDE, and would
> like it to be on. Ways to set that up?

I am not able to answer that.

> 
> TIA... steve
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to