current pwd in prompt

Morgan W. Jones morgan at brambo.UUCP
Fri Feb 12 06:37:22 AEST 1988


>From article <17877 at topaz.rutgers.edu}, by ron at topaz.rutgers.edu (Ron Natalie):
} This works with any real shell:
} 
}     PS1="."
} 
} (I don't recall who posted this, but it was one of the best answers I
} heard on it).
} 
} On the Korn shell (but not most Bourne shell PS1 is evaluated each time
} it is printed so you can:
} 
}     PS1="`pwd` "
} 
} -Ron

Doesn't work on mine (SysVR3 on Prime EXL316).

-- 
Morgan Jones - Bramalea Software Inc.       ...!utgpu!telly \ !brambo!morgan
               ...!{uunet!mnetor, watmath!utai}!lsuc!ncrcan /
"These might not even be my opinions, let alone anyone else's."



More information about the Comp.unix.wizards mailing list