Re: [CentOS-docs] proposal TipsAndTricks/EditorDefaultNano

2010-12-01 Thread Marcus Moeller
Dear Ed.

  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

You may want to add some notes about the ability to define these
variables on per user base:

echo export EDITOR=nano  ~/.bash_profile  echo export
VISUAL=nano  ~/.bash_profile

-- 
Greets
Marcus
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] proposal TipsAndTricks/EditorDefaultNano

2010-12-01 Thread Ed Heron

On Wed, 2010-12-01 at 22:12 +0100, Marcus Moeller wrote:
   Is a document describing this short process desirable to have on the
  wiki?
 
 
 You may want to add some notes about the ability to define these
 variables on per user base:

I've thrown a quick page together and included your suggestion at
http://wiki.centos.org/EdHeron/EditorDefaultNano


___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs