Skip to content
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

Suggest linux users put execs in ~/.local/bin #1118

Merged
merged 1 commit into from
May 28, 2024
Merged

Suggest linux users put execs in ~/.local/bin #1118

merged 1 commit into from
May 28, 2024

Conversation

tecosaur
Copy link
Contributor

On many Linux distributions, both ~/bin and ~/.local/bin will be automatically put on PATH, thanks to this common snippet in the /etc/profile file:

PATH=/usr/local/bin:/usr/bin:/bin
if test "$HOME" != "/" ; then
for dir in $HOME/bin/$CPU $HOME/bin $HOME/.local/bin/$CPU $HOME/.local/bin ; do
    test -d $dir && PATH=$dir:$PATH
done
fi

So, it is prudent to suggest that users check this before modifying their .profile file. Furthermore, while ~/bin has been informally used for a while, ~/.local/bin is part of the XDG Base Directory Spec, which is increasingly embraced by the Linux ecosystem.

On many Linux distributions, both `~/bin` and `~/.local/bin` will
already be on the PATH, thanks to this common snippet in the
/etc/profile file:

    PATH=/usr/local/bin:/usr/bin:/bin
    if test "$HOME" != "/" ; then
    for dir in $HOME/bin/$CPU $HOME/bin $HOME/.local/bin/$CPU $HOME/.local/bin ; do
        test -d $dir && PATH=$dir:$PATH
    done
    fi

So, it is prudent to suggest that users check this before modifying
their .profile file. Furthermore, while `~/bin` has been informally used
for a while, `~/.local/bin` is part of the XDG Base Directory Spec,
which is increasingly embraced by the Linux ecosystem.
@cderv
Copy link
Collaborator

cderv commented May 28, 2024

/deploy-preview

Copy link
Contributor

🚀 Deployed on https://deploy-preview-1118.quarto.org

@cderv cderv merged commit cfbbfcf into quarto-dev:main May 28, 2024
2 checks passed
@cderv
Copy link
Collaborator

cderv commented May 28, 2024

Thanks, I think this is indeed a good change to use ~/.local

Copy link
Contributor

Successfully created backport PR for prerelease:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants