mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
pfetch: Added crux support
This commit is contained in:
6
pfetch
6
pfetch
@@ -109,10 +109,16 @@ get_os() {
|
|||||||
|
|
||||||
case $os in
|
case $os in
|
||||||
Linux*)
|
Linux*)
|
||||||
|
# TODO: Some distributions don't support '/etc/os-release'.
|
||||||
|
# Bedrock support is something I'd like to add for example.
|
||||||
|
|
||||||
# Disable warning about shellcheck not being able
|
# Disable warning about shellcheck not being able
|
||||||
# to read '/etc/os-release'. This is fine.
|
# to read '/etc/os-release'. This is fine.
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. /etc/os-release && distro=$PRETTY_NAME
|
. /etc/os-release && distro=$PRETTY_NAME
|
||||||
|
|
||||||
|
# CRUX does its own thing entirely, go CRUX!
|
||||||
|
command -v crux >/dev/null && distro=$(crux)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin*)
|
Darwin*)
|
||||||
|
|||||||
Reference in New Issue
Block a user