Merge pull request #480 from aartoni/master

Set default visudo editor
This commit is contained in:
Luke Smith 2022-10-18 22:18:41 +00:00 committed by GitHub
commit bb38ec9bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
larbs.sh Executable file → Normal file
View File

@ -303,6 +303,7 @@ EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf
# (like `shutdown` to run without password).
echo "%wheel ALL=(ALL:ALL) ALL" >/etc/sudoers.d/00-larbs-wheel-can-sudo
echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys,/usr/bin/pacman -Syyuw --noconfirm,/usr/bin/pacman -S -u -y --config /etc/pacman.conf --,/usr/bin/pacman -S -y -u --config /etc/pacman.conf --" >/etc/sudoers.d/01-larbs-cmds-without-password
echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-larbs-visudo-editor
# Last message! Install complete!
finalize