Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!e260-3a.berkeley.edu!laba-3hd From: laba-3hd@e260-3a.berkeley.edu (Sam Shen) Newsgroups: comp.unix.wizards Subject: Csh prompt problem Keywords: csh prompt glob cd Message-ID: <20005@agate.BERKELEY.EDU> Date: 6 Feb 89 09:39:48 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: laba-3hd@e260-3a.berkeley.edu (Sam Shen) Organization: University of California, Berkeley Lines: 35 I like to keep my current directory in my prompt. I do it like this: (e260-3a) laba-3hd % alias cd cd !*; prom (e260-3a) laba-3hd % alias prom set prompt = "($host) ""$cwd:t"" % " Where $host is the hostname (I'm on a cluster of about 60 Suns, so it's easy to forget which one you're on) and $cwd is of course the current directory. Unfortunately, when I do this: (e260-3a) laba-3hd % mkdir '*' (e260-3a) laba-3hd % cd '*' My prompt becomes: (e260-3a) * /usr/wolf/c60a-3/sp89/laba-3hd/60a /usr/wolf/c60a-3/sp89/laba-3hd/Mail /usr/wolf/c60a-3/sp89/laba-3hd/News /usr/wolf/c60a-3/sp89/laba-3hd/awk /usr/wolf/c60a-3/sp89/laba-3hd/bin /usr/wolf/c60a-3/sp89/laba-3hd/go_away /usr/wolf/c60a-3/sp89/laba-3hd/pic /usr/wolf/c60a-3/sp89/laba-3hd/priv /usr/wolf/c60a-3/sp89/laba-3hd/ps /usr/wolf/c60a-3/sp89/laba-3hd/src % (I put newlines in the prompt so it wouldn't be one long line.) Whereas I want my prompt to be: (e260-3a) * % How do I do this? Sam Shen laba-3hd@web.berkeley.edu