New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ~/.local/bin to PATH variable #325

Closed
jlupi opened this Issue Apr 22, 2015 · 7 comments

Comments

Projects
None yet
3 participants
@jlupi
Contributor

jlupi commented Apr 22, 2015

It would be useful to have ~/.local/bin folder added to the PATH variable. Custom scripts could be stored there instead of in /usr/local/bin which would be better from the portability point of view. Besides there is no risk that the scripts are overwritten on update.

@jlupi jlupi added the enhancement label Apr 22, 2015

@darinkes

This comment has been minimized.

Contributor

darinkes commented Apr 23, 2015

👍

And I would also like to see $HOME/bin in the default PATH

@tombujok

This comment has been minimized.

Contributor

tombujok commented Apr 23, 2015

Do we need both: $HOME/bin and $HOME/.local/bin ?

@darinkes

This comment has been minimized.

Contributor

darinkes commented Apr 23, 2015

$HOME/bin is a unix/linux default.

see /etc/skel/.profile:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Not sure where the .local/bin is coming from.

@tombujok

This comment has been minimized.

Contributor

tombujok commented Apr 23, 2015

What would you say if we did it as follows:

  • we put ~/.local/bin to PATH
  • we create a softlink from ~/.local/bin to ~/bin

.local scales better, somehow, since we could have ~/.local/lib, etc.

@jlupi

This comment has been minimized.

Contributor

jlupi commented Apr 23, 2015

@tombujok looks good to me, the scalibility was my point too. @darinkes will that work for you?

BTW the ~/.local/bin i saw in fedora. Python's pip also uses such location for installed packages (pip install --user command)

@darinkes

This comment has been minimized.

Contributor

darinkes commented Apr 23, 2015

ok for me

@jlupi jlupi closed this in eeb3657 May 15, 2015

@jlupi

This comment has been minimized.

Contributor

jlupi commented May 15, 2015

Part of Release 1.2.0 #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment