reading of local .exrc files
ado at elsie.UUCP
ado at elsie.UUCP
Sun May 13 03:14:51 AEST 1984
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
More information about the Comp.unix.wizards
mailing list