Current directory in the ksh prompt?
Donn Pedro
dfpedro at uswnvg.UUCP
Wed May 1 00:20:49 AEST 1991
In article <1991Apr30.021429.2072 at spool.cs.wisc.edu>, odin at jomby.cs.wisc.edu (Odin Anderson) writes:
> Isn't the folowing more simple while still doing what you want:
> PS1=" \$PWD> "
> This works well for me (I like the whole path).
If you only want the last component of the path:
PS1='${PWD##*/} > '
Note that this is running under ksh.
dfpedro at uswnvg.UUCP
More information about the Comp.unix.shell
mailing list