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

nice PS1 with /bin/sh

Hello all,

I have been using /usr/local/bin/bash but now tring to get used to

In my .profile, I wrote;

PS1="$USER_(_at_)_`hostname`:`echo $PWD | perl -pe 's#^$ENV{HOME}#~#'`$ "

and this gives me the prompt of my favorite.

However, I don't want to use perl to set up PS1.
I think I should use sed instead but don't know how to do that.

Any suggestions?

Yutaka KAWASE <yutaka_(_at_)_jpnet_(_dot_)_nu>

Visit your host, monkey.org