home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10410 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasbge
  3. From: sasbge@ant.unx.sas.com (Gantt Edmiston)
  4. Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
  5. Originator: sasbge@ant.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BtLyAp.35r@unx.sas.com>
  8. Date: Wed, 26 Aug 1992 20:30:25 GMT
  9. Reply-To: sasbge@ant.unx.sas.com
  10. References:  <fish.714853851@news2.gsfc.nasa.gov>
  11. Nntp-Posting-Host: ant.unx.sas.com
  12. Organization: SAS Institute Inc.
  13. Lines: 30
  14.  
  15.  
  16. In article, fish@daacdev1.stx.com writes:
  17. >whenever i :! out of vi it uses /bin/sh instead of $SHELL
  18. >so all of my aliases are lost, etc and makes it very limited
  19. >
  20. >i'm just beginning to see just how powerful vi really is but
  21. >this one is screwing me up royally  
  22. >
  23. >    thanx,
  24. >        fish
  25.  
  26. Try using the ":shell" instead of ":!" to escape out to the shell.
  27.  
  28. Additionally, try: ":set all".  This will show you all the values of
  29. all the "ex" options.  Look for the one called "shell=" and see if
  30. it is set to your favorite shell.  If not, you *can* create a .exrc
  31. file in your $HOME directory and include the line: set shell=/bin/ksh
  32. or whatever suits your needs.  Then, each time you bring up vi, it
  33. will source the .exrc file and set the options to your preferences.
  34.  
  35. PS: I don't have the "shell" info in my .exrc file and it gets set
  36. to /bin/ksh by default.  I'm not sure why, but I want it that way
  37. so I'm not too concerned.
  38. -- 
  39. -----------------------------------------------------------------------------
  40. Gantt Edmiston - SysAdmin       |If you always do what you have always done, 
  41. SAS Institute Inc.              |you'll always get what you've always gotten!
  42. Quality Assurance - V416        +--------------------------------------------
  43. Cary NC 27513 919-677-8000 x6091|          sasbge@ant.unx.sas.com
  44. -----------------------------------------------------------------------------
  45.