general: Starting cutting script down in size.
This commit is contained in:
parent
c688850bcc
commit
cac22ec505
1 changed files with 16 additions and 16 deletions
32
neofetch
32
neofetch
|
@ -812,27 +812,26 @@ EOF
|
||||||
# DETECT INFORMATION
|
# DETECT INFORMATION
|
||||||
|
|
||||||
get_os() {
|
get_os() {
|
||||||
# $kernel_name is set in a function called cache_uname and is
|
# $kernel_name is the output of 'uname -s'.
|
||||||
# just the output of "uname -s".
|
case $kernel_name in
|
||||||
case "$kernel_name" in
|
Darwin): "$darwin_name" ;;
|
||||||
"Darwin"): "$darwin_name" ;;
|
SunOS): Solaris ;;
|
||||||
"SunOS"): "Solaris" ;;
|
Haiku): Haiku ;;
|
||||||
"Haiku"): "Haiku" ;;
|
MINIX): MINIX ;;
|
||||||
"MINIX"): "MINIX" ;;
|
AIX): AIX ;;
|
||||||
"AIX"): "AIX" ;;
|
IRIX*): IRIX ;;
|
||||||
"IRIX"*): "IRIX" ;;
|
FreeMiNT): FreeMiNT ;;
|
||||||
"FreeMiNT"): "FreeMiNT" ;;
|
|
||||||
|
|
||||||
"Linux" | "GNU"*)
|
Linux|GNU*)
|
||||||
: "Linux"
|
: Linux
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"BSD" | "DragonFly" | "Bitrig")
|
*BSD|DragonFly|Bitrig)
|
||||||
: "BSD"
|
: BSD
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"CYGWIN"* | "MSYS"* | "MINGW"*)
|
CYGWIN*|MSYS*|MINGW*)
|
||||||
: "Windows"
|
: Windows
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
@ -841,6 +840,7 @@ get_os() {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
os="$_"
|
os="$_"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue