home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / emacs / 3053 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!acorn!ixi!ixi!pd
  2. From: pd@x.co.uk (Paul Davey)
  3. Newsgroups: comp.emacs
  4. Subject: Re: shell command and macro completion
  5. Message-ID: <PD.92Sep8145248@herts.x.co.uk>
  6. Date: 8 Sep 92 14:52:48 GMT
  7. References: <1992Sep3.171417.21110@TorreyPinesCA.ncr.com>
  8. Sender: paul@x.co.uk (Paul Davey)
  9. Organization: IXI Ltd.
  10. Lines: 16
  11. In-Reply-To: garye@TorreyPinesCA.ncr.com's message of 3 Sep 92 17:14:17 GMT
  12.  
  13. >>>>> On 3 Sep 92 17:14:17 GMT, garye@TorreyPinesCA.ncr.com (Gary Engebretson 3793) said:
  14.  ...
  15. Gary> 1. I use csh and have a large .cshrc file. This means that when I do 'M-x shell'
  16. Gary> I have to wait while .cshrc is executed. No problem there. But when I do 'ESC !'
  17. Gary> .cshrc is also executed which takes a lot of time for no real purpose. The
  18. Gary> question is : how can I get 'M-x shell' to execute .cshrc but 'ESC !' to NOT
  19. Gary> execute .cshrc?
  20.  
  21. in .cshrc put this at the top
  22.  
  23. #             .(T)CSHRC FILE BY PAUL DAVEY                  #
  24. #   See man csh,tcsh for further details or a C-shell Guide of your choice    #
  25. umask 22
  26. # TEST FOR NON-INTERACTIVE SHELL, IF SO EXIT
  27. # This speeds up start of c-shell scripts by not defining aliases, extended path etc
  28. if ($?prompt == 0)  exit
  29.  
  30. This will stop it being run by any script (really any non tty process).
  31.  
  32. --
  33.  Regards,              pd@x.co.uk           IXI Ltd.
  34.     Paul Davey          pd@ixi.uucp          62-74 Burleigh St.
  35.                   ...!uunet!ixi!pd     Cambridge,  U.K.
  36.  "These _are_ interesting times"  +44 223 462 131      CB1  1OJ
  37.