Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559580 - sys-apps/baselayout: add $HOME/bin to PATH
Summary: sys-apps/baselayout: add $HOME/bin to PATH
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-04 10:57 UTC by Pacho Ramos
Modified: 2015-09-05 08:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2015-09-04 10:57:08 UTC
Every time I land on a new user or new system I need to manually add something like:
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

to my .bashrc for getting the tools installed in my bin dir to be in the path, I was wondering if maybe this could be done in /etc/profile :/

Thanks a lot
Comment 1 Patrick Lauer gentoo-dev 2015-09-04 11:04:45 UTC
I would prefer for that to not be default, sounds all in all like lots of unexcpected effects and possibly security issues.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2015-09-04 14:28:12 UTC
I too think this likely has some unexpected security implications and would not be for it by default. On machines where I actually need this I personally use $HOME/.bin so I think you'll find each person likes their own setup.

My recommendation would be to use something like homeshick:

https://github.com/andsens/homeshick

You can see my setup here:

https://github.com/cardoe/dotfiles
Comment 3 SpanKY gentoo-dev 2015-09-04 17:11:19 UTC
yeah, i tend to agree with these.  i also use ~/.bin/ on my systems, and store my syncable ~/ stuff in git.  so when i get to a new system, i just clone that and move on.
Comment 4 Pacho Ramos gentoo-dev 2015-09-05 08:57:22 UTC
Well, ok no problem