#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/kernel kernel-msgs () { local lvl=$1 sudo dmesg --notime --level=$lvl } kernel-all-bad () { echo "warnings:\n" kernel-msgs warn echo "\nerrors:\n" kernel-msgs err }