home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9560 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!uunet.ca!canrem!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Question about ' " ` (sorry if reposted)
  5. Message-ID: <1992Jul30.000841.3719@druid.uucp>
  6. Date: Thu, 30 Jul 1992 00:08:41 GMT
  7. References: <1992Jul27.235121.26287@mnemosyne.cs.du.edu>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 17
  10.  
  11. swolfson@nyx.cs.du.edu (Sabina Wolfson) writes:
  12. >    TEMP_FRONT="`/usr/5bin/tput bold`"
  13. >    TEMP_BACK="(`hostname`) `/usr/5bin/tput rmso`"
  14. >    PS1='${TEMP_FRONT} ${PWD#$HOME/} ${TEMP_BACK}'
  15. >
  16. >I would like to be able to do this all in one line but I cannot get the
  17. >quotes right...anyone know how to do this?
  18.  
  19. PS1="`/usr/5bin/tput bold`"' ${PWD#HOME/} '"(`hostname`) `/usr/5bin/tput rmso`"
  20.     ^                     ^^              ^^                                  ^
  21. You can always close one kind of quote and open the other.
  22.  
  23. -- 
  24. D'Arcy J.M. Cain (darcy@druid.com)  |
  25. D'Arcy Cain Consulting              |   There's no government
  26. Toronto, Ontario, Canada            |   like no government!
  27. +1 416 424 2871          DoD#0082   |
  28.