Xref: utzoo comp.unix.misc:936 comp.windows.misc:1798 Newsgroups: comp.unix.misc,comp.windows.misc Path: utzoo!utgpu!cunews!dfs From: dfs@doe.carleton.ca (David F. Skoll) Subject: Re: prompt question Message-ID: Sender: news@ccs.carleton.ca (news) Organization: Carleton University, Ottawa, Canada References: <1991Jan23.083259.16296@daimi.aau.dk> <51331@sequent.UUCP> Date: 7 Feb 91 19:29:10 GMT In <51331@sequent.UUCP> edw@sequent.UUCP (Ed Wright) writes: >You can take that to a silly extreme >alias cd 'cd \!* ;set prompt=`hostname`" "`whoami`" "`pwd`" {\!} "' I have taken my prompt to an even SILLIER extreme (but I like it.) Here's an extract from my .cshrc: alias cd "cd \!*; prompt" alias chdir "cd \!*" alias popd "popd \!*; prompt" set effuser=`whoami` set host=`hostname` set tty=`tty` if ($effuser == "root") then set hash="#" else set hash="%" set path=($path .) endif alias prompt 'set prompt="--> $cwd <--\\ \\!: ${effuser}@${host}($tty:t)${hash} "' This is what is looks like right now: --> /enterprise/transporter/dfs <-- 2: dfs@riker(ttyp4)% | Cursor here ---------+ -- David F. Skoll.