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.

Show comment
Hide comment
@darinkes

darinkes Apr 23, 2015

Contributor

👍

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

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.

Show comment
Hide comment
@tombujok

tombujok Apr 23, 2015

Contributor

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

Contributor

tombujok commented Apr 23, 2015

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

@darinkes

This comment has been minimized.

Show comment
Hide comment
@darinkes

darinkes Apr 23, 2015

Contributor

$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.

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.

Show comment
Hide comment
@tombujok

tombujok Apr 23, 2015

Contributor

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.

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.

Show comment
Hide comment
@jlupi

jlupi Apr 23, 2015

Contributor

@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)

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.

Show comment
Hide comment
@darinkes

darinkes Apr 23, 2015

Contributor

ok for me

Contributor

darinkes commented Apr 23, 2015

ok for me

@jlupi jlupi closed this in eeb3657 May 15, 2015

@jlupi

This comment has been minimized.

Show comment
Hide comment
@jlupi

jlupi May 15, 2015

Contributor

Part of Release 1.2.0 #304

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