Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsl!cbnewsk!noraa From: noraa@cbnewsk.att.com (aaron.l.hoffmeyer) Newsgroups: comp.unix.shell Subject: Re: ksh prompt Message-ID: <1991Mar8.011110.2378@cbnewsk.att.com> Date: 8 Mar 91 01:11:10 GMT References: <1991Mar4.133215.12269@cbnews.att.com> <57993@mcdchg.chg.mcd.mot.com> <7365@mentor.cc.purdue.edu> Organization: AT&T Bell Laboratories Lines: 21 In article <7365@mentor.cc.purdue.edu> asg@sage.cc.purdue.edu (The Grand Master) writes: >The $PWD variable changes when you cd. >ksh provides for another eval of the prompt string before printing it, >so all you have to do is quote the $ in $PWD like this: >PS1="\$PWD ->" >this will give you a prompt that includes the current directory and >is dynamic > Bruce OK. That's solved. Now -> I like to have my p[rompt in reverse video (and in distinct colors when I am working on a terminal with those capabilities). Anyway, for the terminal I use the most, this is my PS1 definition: export PS1=`print - "\`tput smso\`\`tput blink\` ${SYSNAME}-> \`tput sgr0\` "` How do I get the \$PWD in my PS1 definition to be printed in reverse video? Aaron L. Hoffmeyer TR@CBNEA.ATT.COM