Add ~/.local/bin to the path in user shell profile
This commit is contained in:
parent
55ef4503a5
commit
335d6b1a21
@ -6,7 +6,7 @@
|
|||||||
# AIF, Calamares, and the Arch Wiki.. Credit where credit is due
|
# AIF, Calamares, and the Arch Wiki.. Credit where credit is due
|
||||||
|
|
||||||
# shellcheck disable=SC2086,SC2046,SC2254,SC2164
|
# shellcheck disable=SC2086,SC2046,SC2254,SC2164
|
||||||
VER=2.1.62
|
VER=2.1.63
|
||||||
|
|
||||||
# default values {
|
# default values {
|
||||||
|
|
||||||
@ -2034,7 +2034,7 @@ install_packages()
|
|||||||
errshow 1 "chrun 'pacman -S $KERNEL $UCODE iputils --noconfirm'"
|
errshow 1 "chrun 'pacman -S $KERNEL $UCODE iputils --noconfirm'"
|
||||||
|
|
||||||
# install the packages chosen throughout the install plus any extras added
|
# 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
|
# but I'm done doing this manually every time the arch repos change
|
||||||
for pkg in "${inpkg[@]}"; do
|
for pkg in "${inpkg[@]}"; do
|
||||||
if pacman -Ssq "^$pkg$" >/dev/null 2>&1; then
|
if pacman -Ssq "^$pkg$" >/dev/null 2>&1; then
|
||||||
@ -2337,6 +2337,9 @@ config_xinit()
|
|||||||
|
|
||||||
# run `startx` after logging in regardless of autologin
|
# run `startx` after logging in regardless of autologin
|
||||||
cat > "$MNT/home/$NEWUSER/$LOGINRC" <<- EOF
|
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
|
# automatically run startx when logging in on tty1
|
||||||
[ -z "\$DISPLAY" ] && [ \$XDG_VTNR -eq 1 ] && startx
|
[ -z "\$DISPLAY" ] && [ \$XDG_VTNR -eq 1 ] && startx
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user