Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/env.d/ and PATH ranking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
camaldoli
n00b
n00b


Joined: 19 Aug 2014
Posts: 1

PostPosted: Tue Aug 19, 2014 2:22 pm    Post subject: /etc/env.d/ and PATH ranking Reply with quote

If I put something like

PATH="/home/user/bin"

in let's say

/etc/env.d/00whatever

the resulting PATH is

/usr/local/bin:/usr/bin:/bin:/opt/bin:/home/user/bin

But I want /home/user/bin to override system bindirs,
so what I want is

/home/user/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin

Under GNOME it's not sufficient to add

PATH="/home/user/bin:$PATH"

to .bashrc, because I don't want to have
to start applications from gnome-terminal.

How can I add /home/user/bin system wide
in front of PATH?
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Aug 19, 2014 3:43 pm    Post subject: Re: /etc/env.d/ and PATH ranking Reply with quote

camaldoli wrote:

How can I add /home/user/bin system wide
in front of PATH?


Put eg:PATH="/opt/bin:${PATH}" in /etc/profile.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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