Skip to contentSkip to conversation

changing KDE Konsole prompt?

DISCUSSION Jens Knoell 4 participants 4 messages Feb 9, 2004 – Feb 10, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 11 lines · On

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

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 ;-)

Quoted 8 lines · 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}$ ";;

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Jens Knoell

http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html

Quoted 13 lines · 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Jeff Largent                   ImageLinks, Inc.
Sr System Admin                Melbourne, Fl 32935
(321) 253-0011                 fax: (321) 253-5559