From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Steudten Subject: Re: changing KDE Konsole prompt? Date: Mon, 09 Feb 2004 22:26:48 +0100 Sender: linux-admin-owner@vger.kernel.org Message-ID: <4027FB18.3090608@steudten.com> References: <000b01c3ef4d$ded558f0$6f00000a@jenswin2k> <20040209210154.GA4128@m4cc.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20040209210154.GA4128@m4cc.com> List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Jeffrey Morse Cc: Linux Admin The bash-shell has an expansion of "\$" which gives you a hash for uid=3D0, else a $. See man bash, grep PROMPTING. But that=B4s not the console, it=B4s the shell ;-) Jeffrey Morse wrote: > Put this in your .bashrc: >=20 > This changes the bash shell prompt > # set prompt: ``username@hostname:/directory $ '' > PS1=3D"[\u@\h:\w] " > case `id -u` in > 0) PS1=3D"${PS1}# ";; > *) PS1=3D"${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