[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interactive $PWD in prompt using /bin/sh ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Interactive $PWD in prompt using /bin/sh ?
- From: Matthew Law <matt_(_at_)_matthewlaw_(_dot_)_plus_(_dot_)_com>
- Date: Mon, 23 Aug 2004 16:33:54 +0100
I'm using the bourne shell as default for my user account on OpenBSD 3.5
and I'd like the prompt to track the current $PWD. Is there an easy way
of doing this other than making an alias for 'cd' to a script that
changes the directory and then resets the prompt after a directory
change? I'm coming from a Linux background (no flames please!) and I
would like the equivalent to my bash prompt which uses '\u' to get the
current working dir. I know I can install bash but I'd rather stick
with the shells that come with a default OpenBSD install otherwise I
won't learn anything, will I?
Thanks in advance and my apologies if this has already been answered