Blob Blame History Raw
# If `/etc/sudoers.d/beep` is configured to allow the non-root user
# access to beep without entering a password, alias `beep` to do that.
# If sudo does require a password, the non-root users will see a sudo
# error message instead of a beep error message.

if (($euid != 0) && (-x /usr/bin/beep) && (-x /usr/bin/sudo)) then
    alias beep 'sudo -n /usr/bin/beep'
endif