On Jan 16, 2017, at 16:40, Cowboy <[email protected]> wrote:

> Then you already have the file.
> Just write it.

vi(1) is merely the default editor.  To use something else, set a VISUAL 
variable in your environment to the editor of your choice.

For example (bash(1)-centric!) :

        export VISUAL=emacs

Then, any Rivendell component run from that shell instance will use emacs(1) to 
display reports.  To make it so this always works (without having to enter it 
in by hand and run things from the command line), just put the line above into 
the ‘.bashrc’ file in your home directory and then log out and back in. 

BTW, this is part of a much larger, and standard, Linux/UNIX design pattern.  A 
lot of other system tools —e.g. crontab(1) — use this approach as well.  For 
some background info, see:

        http://www.catb.org/esr/writings/taoup/html/ch10s04.html#id2942749

(Be sure the check out footnote #103)

Cheers!


|----------------------------------------------------------------------|
| Frederick F. Gleason, Jr. |              Chief Developer             |
|                           |              Paravel Systems             |
|----------------------------------------------------------------------|
|          A room without books is like a body without a soul.         |
|                                         -- Cicero                    |
|----------------------------------------------------------------------|

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to