You are not logged in.

#1 2009-06-12 18:21:35

Frabato
Member
Registered: 2007-10-24
Posts: 267

EDITOR=nano [SOLVED]

Hi All,

I use yaourt and every time I build a package it says:
Please add EDITOR to your environment variables.
I issued this command: export EDITOR=nano
and then I checked "env" and it shows up but disappears after a reboot. Can someone please tell me the proper way to add this and where?

Thanks

Last edited by Frabato (2009-06-13 13:53:11)

Offline

#2 2009-06-12 18:30:55

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: EDITOR=nano [SOLVED]

first, ensure you have this in ~/.bash_profile

. $HOME/.bashrc

then, put this in ~/.bashrc

export EDITOR=/usr/bin/nano

then, execute this (or login/out)

source ~/.bashrc

then go research all the other awesome things you can put in ~/.bashrc

Offline

#3 2009-06-12 18:32:15

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: EDITOR=nano [SOLVED]

if you're using bash for your shell adding that to ~/.bashrc should do the trick. If you're using something else there should be an equivalent configuration file.

Offline

#4 2009-06-12 18:41:07

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: EDITOR=nano [SOLVED]

My $EDITOR is set to vim but yaourt always opened PKGBUILDS in geany (which I set somewhere earlier).
I just couldn't find any mention of geany in any of yaourt or pacman related configuration files. It drove me crazy not being able to change that...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2009-06-12 19:14:43

Frabato
Member
Registered: 2007-10-24
Posts: 267

Re: EDITOR=nano [SOLVED]

Thanks very much! That did it.

I'll leave this open to see if someone can help moljac024 with his question.

Offline

#6 2009-06-13 11:59:16

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: EDITOR=nano [SOLVED]

moljac024 wrote:

My $EDITOR is set to vim but yaourt always opened PKGBUILDS in geany (which I set somewhere earlier).
I just couldn't find any mention of geany in any of yaourt or pacman related configuration files. It drove me crazy not being able to change that...

Set your pkgbuildeditor in /etc/yaourtrc  or /home/user/.yaourtrc.


Knute

Offline

#7 2009-06-13 13:05:01

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: EDITOR=nano [SOLVED]

Knute wrote:
moljac024 wrote:

My $EDITOR is set to vim but yaourt always opened PKGBUILDS in geany (which I set somewhere earlier).
I just couldn't find any mention of geany in any of yaourt or pacman related configuration files. It drove me crazy not being able to change that...

Set your pkgbuildeditor in /etc/yaourtrc  or /home/user/.yaourtrc.

Omg I've looked everywhere but I missed that file...there it was, right in front of me, and it's set to geany
I don't use yaourt anymore anyway, but thanks anyway wink


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

Board footer

Powered by FluxBB