pfetch: more BSD support

This commit is contained in:
Dylan Araps 2019-09-24 20:26:50 +03:00
parent b7be211b13
commit 0c927884dd

11
pfetch
View File

@ -118,13 +118,22 @@ get_os() {
*)
# Catch all to ensure '$distro' is never blank.
# This should also handle the BSDs, macOS etc.
distro=$os
distro="$os $kernel"
;;
esac
}
get_kernel() {
# '$kernel' is the cached output of 'uname -r'.
case $os in
# Don't print kernel output on BSD system as the
# OS name includes it.
*BSD) ;;
*)
log kernel "$kernel"
;;
esac
}
get_host() {