board/common: replace edit and editor with symlink to nano

The nano editor has been shown, over and over again, to be more
user-friendly to complete UNIX/Linux beginners than even Mg.

Also, change the default pager/less to be less (again), it was
very confusing to have less be most and more just be more.  We
recommend scripts to use pager and edit/editor to call system
safe defaults.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-01-31 21:45:32 +01:00
parent 70b725baec
commit 4ca58836b4
6 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -269,7 +269,10 @@ editor()
cat <<EOF
${H1}Summary ${H0}
Use Mg if you are a beginner. This is also the default for the 'edit' alias.
Use Mg or GNU Nano if you are a beginner. The system is set up to so you can
use the 'edit' command, which will start GNU Nano:
edit /etc/rc.local # Starts GNU Nano
EOF
;;
@@ -3,15 +3,13 @@ alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias less=most
export EDITOR=/usr/bin/edit
alias less=pager
alias vim='vi'
alias view='vi -R'
alias emacs='mg'
alias edit='mg'
alias editor=edit
alias sensible-editor=edit
alias sensible-pager=less
export EDITOR=/usr/bin/mg
alias sensible-pager=pager
alias ip='ip --color=auto'
alias ipb='ip -br'
+1
View File
@@ -0,0 +1 @@
nano
+1
View File
@@ -0,0 +1 @@
nano
+1
View File
@@ -0,0 +1 @@
less
+1
View File
@@ -0,0 +1 @@
nano