The following example shows how to determine if an editor has been defined, and how to set up "vi" as the default.
$ echo $EDITOR $ $ EDITOR=vi $ export EDITOR
- sandip's blog
- Login or register to post comments
The following example shows how to determine if an editor has been defined, and how to set up "vi" as the default.
$ echo $EDITOR $ $ EDITOR=vi $ export EDITOR