Files
skel/dotfiles/zshrc.d/dmesg.zsh
2021-03-24 13:28:45 -07:00

10 lines
164 B
Bash

function dmesg {
if [ $(id -u) -eq 0 ] ; then
command dmesg "$@"
elif id | grep -q '(sudo)' ; then
sudo dmesg "$@"
else
command dmesg "$@"
fi
}