Skip to content

Commit 2f13c8f

Browse files
committed
feat: Prepend $HOME/.bin to $PATH instead of appending #11
1 parent 12f9022 commit 2f13c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ mkdir -p "$HOME/.bin" # For holding the binaries
1414
mkdir -p "$XDG_CONFIG_HOME/nix" # For the Nix config file
1515

1616
echo "-- Add .bin to the PATH variable in the .profile if not already set"
17-
if [ "$(grep 'export PATH=$PATH:$HOME/.bin' "$HOME/.profile" -c)" -eq 0 ]; then
18-
echo 'export PATH=$PATH:$HOME/.bin' >> "$HOME/.profile"
17+
if [ "$(grep 'export PATH=$HOME/.bin:$PATH' "$HOME/.profile" -c)" -eq 0 ]; then
18+
echo 'export PATH=$HOME/.bin:$PATH' >> "$HOME/.profile"
1919
fi
2020

2121
echo "-- Download Nix"

0 commit comments

Comments
 (0)