Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!nbires!hao!ames!scubed!ncr-sd!geoff From: geoff@ncr-sd.UUCP (Geoff Walton ) Newsgroups: comp.unix.wizards Subject: Re: prompt changing on the fly Message-ID: <1310@ncr-sd.UUCP> Date: Thu, 22-Jan-87 10:46:29 EST Article-I.D.: ncr-sd.1310 Posted: Thu Jan 22 10:46:29 1987 Date-Received: Thu, 22-Jan-87 22:41:25 EST References: <410@moncskermit.oz> Reply-To: geoff@ncr-sd.UUCP (0000-Geoff Walton ) Organization: NCR Corporation, San Diego Lines: 23 Due to the facts that I have accounts on four (five?) different machines, and often forget what directory (let alone what machine) I'm in, I find the following aliases helpful: alias cd 'cd \!* ; set prompt="[1m\\!:`uuname -l`:[$cwd][0m "' alias popd 'popd ; set prompt="[1m\\!:`uuname -l`:[$cwd][0m "' alias pushd 'pushd \!* ; set prompt="[1m\\!:`uuname -l`:[$cwd][0m "' You might want to remove the escape sequences ([1m and [0m), as the do nothing but highlight the prompt on my vt 100, but the resulting prompt gives you: history#:machine_name:[current_directory] Ain't no big deal, but it helps. :r all_usual_disclaimers Geoff Walton NCR E&M San Diego {wherever}!ucbvax!sdcsvax!ncr-sd!geoff Even the smallest problem becomes unsolvable if enough meetings are held to discuss it.