* changing KDE Konsole prompt?
@ 2004-02-09 20:47 Jens Knoell
2004-02-09 21:01 ` Jeffrey Morse
2004-02-10 13:02 ` Jeff Largent
0 siblings, 2 replies; 4+ messages in thread
From: Jens Knoell @ 2004-02-09 20:47 UTC (permalink / raw)
To: Linux Admin
Kinda annoying... I updated to KDE 3.2, and Konsole shows "bash-2.05$" as
prompt... I'd rather have it display the regular shell prompt, but I'm at a
loss what I need to do to get that?
Thanks
Jens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing KDE Konsole prompt?
2004-02-09 20:47 changing KDE Konsole prompt? Jens Knoell
@ 2004-02-09 21:01 ` Jeffrey Morse
2004-02-09 21:26 ` Thomas Steudten
2004-02-10 13:02 ` Jeff Largent
1 sibling, 1 reply; 4+ messages in thread
From: Jeffrey Morse @ 2004-02-09 21:01 UTC (permalink / raw)
Cc: Linux Admin
Put this in your .bashrc:
This changes the bash shell prompt
# set prompt: ``username@hostname:/directory $ ''
PS1="[\u@\h:\w] "
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
-Jeff
* On [02-09-2004 13:47 -0700] Jens Knoell <jens@surefoot.com> wrote:
> Kinda annoying... I updated to KDE 3.2, and Konsole shows "bash-2.05$" as
> prompt... I'd rather have it display the regular shell prompt, but I'm at a
> loss what I need to do to get that?
>
> Thanks
> Jens
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: changing KDE Konsole prompt?
2004-02-09 21:01 ` Jeffrey Morse
@ 2004-02-09 21:26 ` Thomas Steudten
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Steudten @ 2004-02-09 21:26 UTC (permalink / raw)
To: Jeffrey Morse; +Cc: Linux Admin
The bash-shell has an expansion of "\$" which
gives you a hash for uid=0, else a $.
See man bash, grep PROMPTING.
But that´s not the console, it´s the shell ;-)
Jeffrey Morse wrote:
> Put this in your .bashrc:
>
> This changes the bash shell prompt
> # set prompt: ``username@hostname:/directory $ ''
> PS1="[\u@\h:\w] "
> case `id -u` in
> 0) PS1="${PS1}# ";;
> *) PS1="${PS1}$ ";;
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing KDE Konsole prompt?
2004-02-09 20:47 changing KDE Konsole prompt? Jens Knoell
2004-02-09 21:01 ` Jeffrey Morse
@ 2004-02-10 13:02 ` Jeff Largent
1 sibling, 0 replies; 4+ messages in thread
From: Jeff Largent @ 2004-02-10 13:02 UTC (permalink / raw)
To: Jens Knoell; +Cc: Linux Admin
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html
Jens Knoell wrote:
> Kinda annoying... I updated to KDE 3.2, and Konsole shows "bash-2.05$" as
> prompt... I'd rather have it display the regular shell prompt, but I'm at a
> loss what I need to do to get that?
>
> Thanks
> Jens
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Jeff Largent ImageLinks, Inc.
Sr System Admin Melbourne, Fl 32935
(321) 253-0011 fax: (321) 253-5559
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-10 13:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-09 20:47 changing KDE Konsole prompt? Jens Knoell
2004-02-09 21:01 ` Jeffrey Morse
2004-02-09 21:26 ` Thomas Steudten
2004-02-10 13:02 ` Jeff Largent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).