Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!garfield!sandy From: sandy@garfield.cs.mun.ca (Sandy Walsh) Newsgroups: comp.windows.x Subject: (how to) place cwd in title bar Message-ID: <1991May2.195905.5199@garfield.cs.mun.ca> Date: 2 May 91 19:59:05 GMT Article-I.D.: garfield.1991May2.195905.5199 Organization: CS Department, Memorial University of Newfoundland Lines: 27 Here is my KSH(ell) function to replace cd with one to put the current working dir in your title bar. Works great for me ... -------------------------------------- alias cd=ccd function ccd { \cd $1; if [ "$TERM" = "xterm" ]; then print -n "ESC]2;$PWD^G" else print "$PWD" fi } -------------------------------------- Enjoy, Sandy Walsh ------------------------------------------------------------------------ | "Vrooom ... What was that? | Sandy (Books) Walsh | /\O Yee| | That was your life, mate. | Memorial University | #\/Haa| | Do I get another one? | St.John's, NF, Canada | #__ | | Nope, sorry. One's your lot." | Computer Science Dept. | /\/ \/ | | - Basil Fawlty | sandy@garfield.cs.mun.ca | |||||||| | ------------------------------------------------------------------------