mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-23 09:23:02 +02:00
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:
@@ -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'
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
nano
|
||||
+1
@@ -0,0 +1 @@
|
||||
nano
|
||||
+1
@@ -0,0 +1 @@
|
||||
less
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
nano
|
||||
Reference in New Issue
Block a user