You are not logged in.

#1 2010-07-04 09:51:11

rocknrolf77
Member
From: Oslo, Norway
Registered: 2007-05-07
Posts: 68

Change default editor for yaourt

How do I do it? I'm stuck with vim right now. And I don't want to learn vim, when nano is enough for me. Can't find anything by googling either.

Offline

#2 2010-07-04 10:03:22

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Change default editor for yaourt

You can set the editor in the yaourtrc.

You can see a description via

man yaourtrc

Last edited by Barghest (2010-07-04 13:17:28)

Offline

#3 2010-07-04 10:50:03

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Change default editor for yaourt

Change the EDITOR line to "nano" in your /etc/yaourtrc file.


To know or not to know ...
... the questions remain forever.

Offline

#4 2010-07-04 21:07:32

lastchancetosee
Member
From: Berlin
Registered: 2009-02-19
Posts: 131

Re: Change default editor for yaourt

If you want to use nano as the default editor for all terminal-related stuff, add

export EDITOR="nano"

to your ~/.bashrc file.

Yaourt (like most cli programs) by default looks for the $EDITOR environment variable for your editor of choice. So if you change the value of that variable to 'nano', all those programs will use nano.


My ship don't crash! She crashes, you crashed her!

Offline

#5 2010-07-05 19:59:34

rocknrolf77
Member
From: Oslo, Norway
Registered: 2007-05-07
Posts: 68

Re: Change default editor for yaourt

Thank's. Everythings as it should be now.

Last edited by rocknrolf77 (2010-07-05 19:59:46)

Offline

#6 2010-07-05 23:58:23

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Change default editor for yaourt

Remember to mark as solved.

Offline

Board footer

Powered by FluxBB