[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenBSD csh-like prompt for bash and ksh
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: OpenBSD csh-like prompt for bash and ksh
- From: "A. Farber" <Alexander_(_dot_)_Farber_(_at_)_t-online_(_dot_)_de>
- Date: Wed, 20 Nov 2002 11:51:43 +0000
- Reply-to: "A. Farber" <Alexander_(_dot_)_Farber_(_at_)_t-online_(_dot_)_de>
Hi,
I'm sure someone else have tried it too:
to create a prompt for bash and ksh equivalent
to the one delivered with OpenBSD, i.e.
short_hostname:cur_dir {hisotry_number}
Would it be enough to put
# Use same prompt for bash, ksh, tcsh and csh
PS1="\h:\W {\!} "
into ~/.bashrc and to put
# Use same prompt for bash, ksh, tcsh and csh
PS1='${HOSTNAME%%.*}:${PWD##*/} {!} '
into ~/.kshrc for that matter? Or are there some catches?
Thank you
Alex
Visit your host, monkey.org