Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

OpenBSD csh-like prompt for bash and ksh

From: A. Farber <Alexander.Farber(at)t-online.de>
Date: Wed Nov 20 2002 - 06:51:43 EST


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 Received on Wed Nov 20 07:11:41 2002

Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:38 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library