proposal TipsAndTricks/EditorDefaultNano

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  On my systems, I set nano to be the default editor.  Is this something
that can be done with some sort of configuration script?  I don't find
anything like system-switch-mail for editors.

  I do it in my kickstart files, but it can easily be done from a
command line.  Since nano is only useful to people using the command
line, I think it completely appropriate...

  Is a document describing this short process desirable to have on the
wiki?

yum install -y nano
echo "set nowrap" >>/etc/nanorc
cat <<EOF >>/etc/profile.d/nano.sh
export VISUAL="nano"
export EDITOR="nano"
EOF




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Users]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

  Powered by Linux