While reading the git introductory material, I read a piece that brought this question to mind.
How do I use the Terminal to find out what my Default Text Editor is?
Are there a General Commands that I can use to find this out?
command lineenvironment-variablestext-editor
While reading the git introductory material, I read a piece that brought this question to mind.
How do I use the Terminal to find out what my Default Text Editor is?
Are there a General Commands that I can use to find this out?
Best Answer
The default editor is as defined by the
EDITOR
, orVISUAL
, environment variable(s).The default editor is
vi
if neither were defined. Addto your
~/.bashrc
file to set, for example,nano
as your default editor.To see if the environment variable is set, you can use
or
One can dereference the value of the named environment variable by prefixing it with a "$"
or