From 78d78261e107f41ae49488e6d8bf7a9a92c0a31a Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Thu, 2 Jan 2020 18:44:54 +0100 Subject: [PATCH] add text/base.md --- text/base.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 text/base.md diff --git a/text/base.md b/text/base.md new file mode 100644 index 0000000..19e92b5 --- /dev/null +++ b/text/base.md @@ -0,0 +1,20 @@ +The system's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`. + +Add these lines to /etc/profile: + +``` + +export EDITOR=vim + +export VISUAL=$EDITOR + +``` + +Then reload that profile with: + +> source /etc/profile + +If nano still pops up: + +> sudo ln -sf $(which vim) $(which nano) +