From 406dd68863d012df7ab07294c4bef96b962cdc5e Mon Sep 17 00:00:00 2001 From: Toni Mueller Date: Wed, 28 Feb 2024 22:58:41 +0000 Subject: [PATCH] elaborate on the editor selection of the programs --- man/vipw.8.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/man/vipw.8.xml b/man/vipw.8.xml index 4caddcbe..a802bde1 100644 --- a/man/vipw.8.xml +++ b/man/vipw.8.xml @@ -73,10 +73,20 @@ the appropriate locks to prevent file corruption. When looking for an editor, the programs will first try the environment variable $VISUAL, then the environment variable - $EDITOR, and finally the default editor, + $EDITOR, then the editor from + ~/.selected_editor, and finally + nano. vi 1. + + On the first run, if the environment variables $VISUAL + and $EDITOR are both unset, this program asks you for + an editor and stores your selection in + ~/.selected_editor. If the editor mentioned + therein does not exist on your system, the program will fall back + to using nano. + @@ -210,6 +220,9 @@ gshadow5 + + ~/.selected_editor5 + login.defs5 ,