Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559580

Summary: sys-apps/baselayout: add $HOME/bin to PATH
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal CC: patrick
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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