From 334186c26ab3dafa2b4e2c84cc1cd2ac83682072 Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Tue, 30 Mar 2021 18:56:38 +0200 Subject: [PATCH] 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 .. --- .config/shell/aliasrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index d8a7aac7..0290eb00 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -7,7 +7,7 @@ [ -f "$XINITRC" ] && alias startx="startx $XINITRC" # 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" done