Path: utzoo!attcan!uunet!ateng!chip From: chip@ateng.com (Chip Salzenberg) Newsgroups: comp.unix.questions Subject: Re: Prompt as Current Directory? Keywords: Use a function in your .profile Message-ID: <2568946E.889@ateng.com> Date: 21 Nov 89 00:18:53 GMT References: <2114@sactoh0.UUCP> <1989Nov19.180921.20357@ultra.com> Organization: A T Engineering, Tampa, FL Lines: 15 According to rmg@ultra.com (Rich Geiger): >Somehow > /usr/baziotes/projs/releases/source/lint/obj/debug/notes/private % >as a prompt is somewhat irritating. Doesn't leave much space for >typing a command, either! Right. That's why I've got the last two components of the path in my prompt. Using tcsh: alias precmd 'set _h=${cwd:h}; set prompt="%m {${_h:t}/${cwd:t}} % "' -- You may redistribute this article only to those who may freely do likewise. Chip Salzenberg at A T Engineering; or "Did I ever tell you the Jim Gladding story about the binoculars?"