Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Eselect not properly changing EDITOR variable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Fri Jan 04, 2019 4:21 am    Post subject: Eselect not properly changing EDITOR variable Reply with quote

Hello all. So, as the title suggests, eselect is not properly setting the EDITOR variable. I have switched it from nano to vim with the eselect tool, and with I run eselect editor list, it says that vim is selected. In addition, /etc/env.d/99editor reads:

Code:

EDITOR="/usr/bin/vim"


So that isn't messed up. However, when I open up a new shell and run 'echo $EDITOR', it reads out /bin/nano... this applies to standard accounts, as it appears that the variable is not set for root, ever. When I run 'echo $EDITOR' as root, it prints out a blank line (so its not set).
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Fri Jan 04, 2019 4:35 am    Post subject: Reply with quote

/etc/env.d does not directly affect your shell environment. It affects the tool that writes the file that affects your environment. Did you run env-update, or arrange for it to be run on your behalf, so that the settings in /etc/env.d were copied to /etc/profile.env?
Back to top
View user's profile Send private message
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Fri Jan 04, 2019 4:40 am    Post subject: Reply with quote

I did not know that you needed to run env-update. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum