View previous topic :: View next topic |
Author |
Message |
StevenC21 n00b
Joined: 07 Jun 2018 Posts: 63
|
Posted: Fri Jan 04, 2019 4:21 am Post subject: Eselect not properly changing EDITOR variable |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Fri Jan 04, 2019 4:35 am Post subject: |
|
|
/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 |
|
|
StevenC21 n00b
Joined: 07 Jun 2018 Posts: 63
|
Posted: Fri Jan 04, 2019 4:40 am Post subject: |
|
|
I did not know that you needed to run env-update. Thank you. |
|
Back to top |
|
|
|
|
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
|
|