Skip to content

Commit

Permalink
Install scie-pants in ~/.local/bin instead of ~/bin
Browse files Browse the repository at this point in the history
Using `~/bin` does not follow the XDG based directory spec[1] which
recommends `~/.local/bin` and does not offer an `XDG_` env var
alternative similar to other paths.

[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
  • Loading branch information
cognifloyd committed Nov 7, 2023
1 parent 0aaed15 commit a42d954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-pants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Once installed, if you want to update your "pants" launcher binary, use
-h | --help: Print this help message.
-d | --bin-dir:
The directory to install the scie-pants binary in, "~/bin" by default.
The directory to install the scie-pants binary in, "~/.local/bin" by default.
-b | --base-name:
The name to use for the scie-pants binary, "pants" by default.
Expand All @@ -176,7 +176,7 @@ Once installed, if you want to update your "pants" launcher binary, use
EOF
}

bin_dir="${HOME}/bin"
bin_dir="${HOME}/.local/bin"
base_name="pants"
version="latest/download"
while (($# > 0)); do
Expand Down

0 comments on commit a42d954

Please sign in to comment.