From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,552b7059e033056c X-Google-Attributes: gidfee84,public From: jaitken@csugrad.cs.vt.edu (Jeff Aitken) Subject: Re: Directory Prompt Date: 1996/05/09 Message-ID: <4mt0vt$4cu@csugrad.cs.vt.edu>#1/1 X-Deja-AN: 153897495 references: <4lt1oa$294@random.tpgi.com.au> <4mgjpt$obj@northshore.shore.net> <1996May6.165118.16175@isac.hces.com> <4mnec0$r34@glitnir.ifi.uio.no> organization: Virginia Tech Computer Science Dept, Blacksburg, VA reply-to: jaitken@vt.edu newsgroups: comp.unix.osf.osf1 Dan Pop (danpop@mail.cern.ch) wrote: : If you use tcsh it makes no sense to bother with aliases. Simply use : the tcsh %c feature to put the path in your prompt. It has the : advantage that you can control how much of the path you put into your : prompt (a full path is usually not necessary and annoyingly long). You can get around this with a 2-line prompt, which I prefer. I use tcsh, and have the following aliases: alias setprompt 'set prompt="\n%B%n@%m%b:%/\n%% "' alias cd "chdir \!*; setprompt" alias pu "pushd \!*; setprompt" alias po "popd \!*; setprompt" setprompt I administer several machines here, and it's helpful to know just where I'm logged in (and who I am!) so that I don't do something silly (like an inadvertant 'rm -r' :-) The bold really helps in this regard. You can do the same sort of thing in bash fairly easily. -- Jeff Aitken jaitken@vt.edu