in reply to Practical joke

Amusing.... although, assuming your coworkers are using bash, this could be made more realistic by doing something like the following:
my $prompt = $ENV{PS1}; $prompt =~ s|\\u|$ENV{USER}|g; $prompt =~ s|\\h|$ENV{HOSTNAME}|g;
... and so on.

Replies are listed 'Best First'.
Re: Re: Practical joke
by Fastolfe (Vicar) on Jan 25, 2001 at 10:47 UTC
    I had to go a bit further:
    my $prompt = $ENV{PS1}; $ENV{HOSTNAME} =~ s/\..*//; $prompt =~ s!\\u!$ENV{USER}!g; $prompt =~ s!\\h!$ENV{HOSTNAME}!g; $prompt =~ s!\\w!$ENV{PWD} eq $ENV{HOME} ? '~' : $ENV{PWD}!eg; $prompt =~ s!\\\$!$> ? '$' : '#'!eg;