Newsgroups: comp.unix.wizards Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!reich From: reich@magnus.acs.ohio-state.edu (A Minor Diety) Subject: Re: pwd prompts in unix Message-ID: <1991Jun25.033343.21971@magnus.acs.ohio-state.edu> Sender: news@magnus.acs.ohio-state.edu Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu Organization: The Ohio State University - Academic Computing Service References: <27275@adm.brl.mil> <1991Jun24.140512.6143@uokmax.ecn.uoknor.edu> Date: Tue, 25 Jun 1991 03:33:43 GMT Lines: 23 In article <1991Jun24.140512.6143@uokmax.ecn.uoknor.edu> jkmedcal@uokmax.ecn.uoknor.edu (Jeff Medcalf) writes: |In tcsh, I use the following to shell commands in my .cshrc: | |set prompt=%m\[%c\]\{%!\}\: |set prompt2=%m\[%c\]\{%!\}\? | |%m is replaced by the machine name, %c is replaced by the last element of the |cwd, and %! is replaced by the history number. I prefer tcsh and this method. I use gnuemacs all the time and have my PC keyboard remapped to work with emacs. Tcsh uses the arrow keys to select commands out of my history, the cut buffers also work (C-K and C-Y). Tcsh also has some advancements to the aliasing portion of the code. A reference to it on saqqara.cis.ohio-state.edu anonymous ftp points to a location at cornell university ftp site (sorry that I don't have the exact address on me) Later -- DDDDDD k | reich@magnus.acs.ohio-state.edu D D ` cccc k kk (^8 | Dick C. Reichenbach D D i c kkk | "Humans have a way of showing up when DDDDDD i cccc k kk WAS HERE | you least expect them." - Denise Crosby