EDITOR
Preferred default editor for CLI tools.
Syntax
$echo $EDITOR
Examples
Examples
$export EDITOR=vim
Examples
$git config --global core.editor "$EDITOR"
Typical use cases
export EDITOR=nvim
Note
Used by git, crontab, visudo, and many other tools.
Export