>_ linuxcommand.dev
Startseite EDITOR
Shell

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
Set default editor globally
export EDITOR=nvim
Note Used by git, crontab, visudo, and many other tools.
Export