Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Eselect not properly changing EDITOR variable

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

Eselect not properly changing EDITOR variable

  • Quote

Post by StevenC21 » Fri Jan 04, 2019 4:21 am

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: Select all

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).
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jan 04, 2019 4:35 am

/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?
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Fri Jan 04, 2019 4:40 am

I did not know that you needed to run env-update. Thank you.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic