mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 13:19:07 -07:00
Dmesg wrapper function
This commit is contained in:
9
dotfiles/zshrc.d/dmesg.zsh
Normal file
9
dotfiles/zshrc.d/dmesg.zsh
Normal file
@@ -0,0 +1,9 @@
|
||||
function dmesg {
|
||||
if [ $(id -u) -eq 0 ] ; then
|
||||
command dmesg "$@"
|
||||
elif id | grep -q '(sudo)' ; then
|
||||
sudo dmesg "$@"
|
||||
else
|
||||
command dmesg "$@"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user