[TUHS] Other Bell Labs shells from the 80s?

Lyndon Nerenberg (VE7TFX/VE6BBM) via TUHS tuhs at tuhs.org
Tue Mar 3 23:05:51 AEST 2026


> That "output is valid input" thing totally was what I wanted, I played with
> making PS1 and PS2 elements which did not prevent cut-paste making valid
> commands and it never quite worked for me. Not the same, but related.


I have had this in ~/.env for as long as I can remember:


cd () {
        command cd "$@" && setprompt
}
setprompt () {
        PS1=": `id -un`@`hostname -s`:$(pwd -L); "
}
export PS1
setprompt


--lyndon


More information about the TUHS mailing list