Gerard Lally dixit: >Stunning! Thank you!
You’re welcome!
Most of this is original ksh, by the way. This should work:
PS1='$(typeset -R$COLUMNS x="[$USER@$HOSTNAME:$PWD]"; print -nr -- "$x")
'
(It also works in pdksh and ksh93 for me.)
bye,
//mirabilos
--
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)
