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