this causes stupid problems

sudo su logs you in as the current user with sudo privileges, it prevents loading current user environment variables,
even when running su -l to login as root, it's not loading root user enviroment variables either because it's logging in as root under sudo privileges instead as root,
this relates to [question about su #334](https://github.com/LukeSmithxyz/LARBS/issues/334)

aliasing pacman to always prepend sudo to the command, causes the pacman -Qs libxft-bgra command from .config/shell/profile
to run a sudo login prompt right after logging in as the user on SSH, and even sometimes on the desktop itself.
try sourcing .config/shell/profile after your logged in, it will ask for your sudo password ..
This commit is contained in:
KronikPillow 2021-03-30 18:56:38 +02:00
parent c6bc64cdd8
commit 334186c26a
No known key found for this signature in database
GPG Key ID: E4A0CE24DAD6B3FE

View File

@ -7,7 +7,7 @@
[ -f "$XINITRC" ] && alias startx="startx $XINITRC" [ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands # sudo not required for some system commands
for x in mount umount sv pacman updatedb su; do for x in mount umount updatedb; do
alias $x="sudo $x" alias $x="sudo $x"
done done