avoiding 'export' [was: How to change the default text editor ?]

Francisco Borges f.borges at rug.nl
Thu Apr 6 17:17:16 UTC 2006


ยป On Thu, Apr 06, 2006 at 09:42AM -0700, Gary W. Swearingen wrote:

> Adam Funk <a24061 at yahoo.com> writes:
> > export EDITOR='emacs -nw'

> Worse, it moves the variable name away from the left margin, tending
> to hide it (unless you always manage to colorize it).
[...]

> So I sometimes use the form
>
> EDITOR=xemacs; export EDITOR
>
>    export \
> EDITOR=xemacs

Zsh solves that problem with the variable:

 ALL_EXPORT (-a, ksh: -a)
    All parameters subsequently defined are automatically exported.

Allowing for

EDITOR=emacs

zsh-rocks'ly yours,
-- 
Francisco




More information about the ubuntu-users mailing list