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

OpenBSD csh-like prompt for bash and ksh



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