set nano as deafult when editing crontab

2010-12-23 Thread Orestes Leal R.

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'



Re: set nano as deafult when editing crontab

2010-12-23 Thread David Hill
On Thu, Dec 23, 2010 at 03:48:49PM -0600, Orestes Leal R. wrote:
:I want to edit the crontab with nano but by default vi it's invoked
:when I do 'crontab -e'
:

 -eEdit the current crontab using the editor specified by the
   VISUAL or EDITOR environment variables.  After you exit from
   the editor, the modified crontab(5) will be installed
   automatically.


env EDITOR=nano crontab -e



Re: set nano as deafult when editing crontab

2010-12-23 Thread Martin Schröder
2010/12/23 Orestes Leal R. :
> I want to edit the crontab with nano but by default vi it's invoked
> when I do 'crontab -e'

man crontab
 -eEdit the current crontab using the editor specified by the
   VISUAL or EDITOR environment variables.

Are you sure you don't want to use debian instead? :-)

Best
   Martin



Re: set nano as deafult when editing crontab

2010-12-23 Thread Johan Linner

Orestes Leal R. skrev 2010-12-23 22:48:

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'



export VISUAL="nano -w"



Re: set nano as deafult when editing crontab

2010-12-23 Thread BSD

On 12/23/10 15:48, Orestes Leal R. wrote:

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'



What is wrong with mg?

-luis



Re: set nano as deafult when editing crontab

2010-12-23 Thread Orestes Leal R.

On Thu, 23 Dec 2010 15:01:13 -0600, Martin Schrvder 
wrote:


2010/12/23 Orestes Leal R. :

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'


man crontab
 -eEdit the current crontab using the editor specified by the
   VISUAL or EDITOR environment variables.



:-) No Thank you!, by far OpenBSD it's best suited for my tasks than the
'bloated linux' debian.
openbsd it's very small in his base system, I like that, I have a system
running 4.3 acting for
mail, pop3 server with only 1.0GB of disk space.


Are you sure you don't want to use debian instead? :-)

Best
   Martin




Re: set nano as deafult when editing crontab

2010-12-23 Thread Orestes Leal R.

woww MG is new for me, thanks.


On 12/23/10 15:48, Orestes Leal R. wrote:

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'



What is wrong with mg?

-luis






--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: set nano as deafult when editing crontab

2010-12-23 Thread Jeremy Huiskamp

On 2010/12/23 4:48 PM, Orestes Leal R. wrote:

I want to edit the crontab with nano but by default vi it's invoked
when I do 'crontab -e'



Did you read crontab(1)?