From: Thomas Steudten <alpha@steudten.com>
To: Jeffrey Morse <jmorse@m4cc.com>
Cc: Linux Admin <linux-admin@vger.kernel.org>
Subject: Re: changing KDE Konsole prompt?
Date: Mon, 09 Feb 2004 22:26:48 +0100 [thread overview]
Message-ID: <4027FB18.3090608@steudten.com> (raw)
In-Reply-To: <20040209210154.GA4128@m4cc.com>
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
next prev parent reply other threads:[~2004-02-09 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2004-02-10 13:02 ` Jeff Largent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4027FB18.3090608@steudten.com \
--to=alpha@steudten.com \
--cc=jmorse@m4cc.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.