docs: update

This commit is contained in:
Dylan Araps 2019-09-27 09:31:28 +03:00
parent 3656e962c5
commit 7ec3239d0c

15
pfetch
View File

@ -137,11 +137,20 @@ get_os() {
# each and every distribution (which _is_ technically no # each and every distribution (which _is_ technically no
# different from what it is based on) as they're either too # different from what it is based on) as they're either too
# lazy to modify upstream's identification files or they # lazy to modify upstream's identification files or they
# don't have the know-how ship their own lsb-release package. # don't have the know-how (or means) to ship their own
# lsb-release package.
# #
# This causes users to think there's a bug in system detection # This causes users to think there's a bug in system detection
# tools like neofetch or pfetch when they technically *do* # tools like neofetch or pfetch when they technically *do*
# function correctly. # function correctly.
#
# Exceptions are made for distributions which are independent,
# not based on another distribution or follow different
# standards.
#
# This applies only to distributions which follow the standard
# by shipping unmodified identification files and packages
# from their respective upstreams.
if command -v lsb_release; then if command -v lsb_release; then
distro=$(lsb_release -sd) distro=$(lsb_release -sd)
@ -152,8 +161,8 @@ get_os() {
. /etc/os-release && distro=$PRETTY_NAME . /etc/os-release && distro=$PRETTY_NAME
fi fi
# Special cases for distributions which don't follow # Special cases for (independent) distributions which
# any os-release/lsb standards whatsoever. # don't follow any os-release/lsb standards whatsoever.
command -v crux && distro=$(crux) command -v crux && distro=$(crux)
command -v guix && distro='Guix System' command -v guix && distro='Guix System'
;; ;;