From 335d6b1a21206fc6337a71dfca0683958d94b542 Mon Sep 17 00:00:00 2001 From: natemaia Date: Wed, 28 Oct 2020 19:33:03 -0700 Subject: [PATCH] Add ~/.local/bin to the path in user shell profile --- installer | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer b/installer index 72e262d..1364382 100755 --- a/installer +++ b/installer @@ -6,7 +6,7 @@ # AIF, Calamares, and the Arch Wiki.. Credit where credit is due # shellcheck disable=SC2086,SC2046,SC2254,SC2164 -VER=2.1.62 +VER=2.1.63 # default values { @@ -2034,7 +2034,7 @@ install_packages() errshow 1 "chrun 'pacman -S $KERNEL $UCODE iputils --noconfirm'" # install the packages chosen throughout the install plus any extras added - # check that packages were trying to install are available, slow as shit + # check that packages we're trying to install are available, slow as shit # but I'm done doing this manually every time the arch repos change for pkg in "${inpkg[@]}"; do if pacman -Ssq "^$pkg$" >/dev/null 2>&1; then @@ -2337,6 +2337,9 @@ config_xinit() # run `startx` after logging in regardless of autologin cat > "$MNT/home/$NEWUSER/$LOGINRC" <<- EOF + # add ~/.local/bin to the PATH + echo \$PATH | grep -q "\$HOME/.local/bin:" || export PATH="\$HOME/.local/bin:\$PATH" + # automatically run startx when logging in on tty1 [ -z "\$DISPLAY" ] && [ \$XDG_VTNR -eq 1 ] && startx EOF