changing KDE Konsole prompt?
changing KDE Konsole prompt?
am 09.02.2004 21:47:01 von Jens Knoell
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
Re: changing KDE Konsole prompt?
am 09.02.2004 22:01:55 von Jeffrey Morse
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 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
-
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
Re: changing KDE Konsole prompt?
am 09.02.2004 22:26:48 von Thomas Steudten
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
Re: changing KDE Konsole prompt?
am 10.02.2004 14:02:39 von Jeff Largent
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
-
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