IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New I use colours as well.
I'm just a user rather than an admin here at work - but hwen I login I have my config in my telnet client set up so that my dev server telnet session has a dark blue background, and the prod server telnet session is dark red. It's an easy way to tell which machine I'm working on.

Yes, it's telnet. Yes, I know it's bad. No, it doesn't seem to bother anyone else here.
On and on and on and on,
and on and on and on goes John.
New prompt attention
Set terminal title to user@host:directory. Set prompt to same. root's PS1 adds a highlight of the username. Execution is conditional on terminal type to prevent borkage.

# Following sets prompt to [userid@host dir], and puts the full
#   user@host:/full/path/spec in an xterm title bar.
function proml
{
case $TERM in
   xterm*|rxvt|eterm|wterm*)
       local TITLEBAR='\\[\\033]0;\\u@\\h:\\w\\007\\]'
       # eval `dircolors /etc/dir_colors`
       ;;
   *)
       local TITLEBAR=''
       ;;
esac

case $TERM in
   linux|xterm*|rxvt|[Ee]term|wterm|screen*)
       alias ls='ls --color=auto'
       ;;
   *) ;;
esac
   

# shell prompt
PS1="${TITLEBAR}\\
[\\u@\\h:\\W]\\
\\$ "
PS2='> '
PS4='+ '
}

if [ ! -z $PS1 ]; then
   proml
   export PS1
fi

--
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]
[link|http://kmself.home.netcom.com/|[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]]
What part of "gestalt" don't you understand?

   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.
[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/...a_alert.html]]
     command that you ALWAYS run BEFORE init 0 - (boxley) - (8)
         I've done that as well - (tjsinclair)
         Re: command that you ALWAYS run BEFORE init 0 - (folkert) - (6)
             I use colours as well. - (Meerkat) - (1)
                 prompt attention - (kmself)
             more .bashrc - (pwhysall) - (3)
                 While we're comparing prompts... - (static) - (2)
                     Re: While we're comparing prompts... - (folkert) - (1)
                         It's one of those too-obvious things. - (static)

This just in, kid: the mere fact that it's written down and believed in by millions of simpletons does not make something true.
70 ms