home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aux / 3467 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!parag
  2. From: parag@netcom.com (Parag Patel)
  3. Newsgroups: comp.unix.aux
  4. Subject: Re: Change Default Text Editor
  5. Message-ID: <c2yn85d.parag@netcom.com>
  6. Date: 14 Sep 92 21:18:34 GMT
  7. References: <jrh-140992080456@coyote.de.deere.com>
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 27
  10.  
  11. This may be in the FAQ already, but what the hey.  Yes, this is
  12. possible, and I've played around with it a bit.
  13.  
  14. In your ~/.profile, add something like this:
  15.  
  16.     FINDER_EDITOR=/mac/bin/TeachText
  17. or
  18.     FINDER_EDITOR=$HOME/mac/BBEdit/BBEdit
  19.  
  20. or wherever you put your copy of BBEdit.  You will need to copy BBEdit
  21. over to your A/UX filesystem somewhere for the A/UX Finder to find it.
  22.  
  23. Then logout and login again.  All A/UX text files should look as if they
  24. are BBEdit files under the Finder, and double-clicking should work as
  25. expected.
  26.  
  27. For fun, I tried 
  28.     FINDER_EDITOR=/usr/bin/vi
  29. and it worked!  Well, it *almost* worked.  CommandShell opens up a new
  30. window with "vi" running in it.  Unfortunately, once the "vi" terminates
  31. (you exit the editor), the window doesn't go away and instead has an
  32. interactive shell prompt in it.  I haven't figured out a workaround for
  33. this yet.  Also, the A/UX vi can't open up a file on a MacOS partition
  34. like TeachText or BBEdit can.
  35.  
  36.  
  37.     -- Parag
  38.