Re: changing KDE Konsole prompt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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}$ ";;


-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux