Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!harpo!ihnp4!houxm!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rlgvax!cvl!elsie!ado From: ado@elsie.UUCP Newsgroups: net.unix-wizards Subject: Re: reading of local .exrc files Message-ID: <914@elsie.UUCP> Date: Sat, 12-May-84 13:14:51 EDT Article-I.D.: elsie.914 Posted: Sat May 12 13:14:51 1984 Date-Received: Mon, 14-May-84 01:10:08 EDT References: <2470@tektroni.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 22 A dumb way to execute a fixed set of commands when you edit a file is outlined below. The example is for C shell users. In your ".login" file, have a line like: setenv EXINIT "map #1 :source %\! " Then, if you have a set of commands you want to use when you edit a file named editable put these commands in a file named editable! where the trailing exclamation point above is part of the name. Finally, when you begin editing the file, tap function key 1 to execute the desired commands. You can, of course, use some other convention in naming the files that hold the editor commands; for example, setenv EXINIT "map #1 :source %.exrc " Tapping the function key to execute the commands means more work for you-- and also gets around security problems of embedded commands. -- UNIX is an AT&T Bell Laboratories trademark. -- decvax!harpo!seismo!rlgvax!umcp-cs!elsie!ado (301) 496-5688