misc: cleanup
This commit is contained in:
parent
d8f7e8df54
commit
e95776d40b
22
neofetch
22
neofetch
|
@ -774,13 +774,13 @@ get_os() {
|
||||||
# $kernel_name is set in a function called cache_uname and is
|
# $kernel_name is set in a function called cache_uname and is
|
||||||
# just the output of "uname -s".
|
# just the output of "uname -s".
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"Darwin") : "$(sw_vers -productName)" ;;
|
"Darwin"): "$(sw_vers -productName)" ;;
|
||||||
"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"
|
||||||
|
@ -1283,7 +1283,7 @@ get_packages() {
|
||||||
/var/db/paludis/repositories/installed/data/*/
|
/var/db/paludis/repositories/installed/data/*/
|
||||||
|
|
||||||
# Other (Needs complex command)
|
# Other (Needs complex command)
|
||||||
has "kpm-pkg" && ((packages+="$(kpm --get-selections | grep -cv deinstall$)"))
|
has "kpm-pkg" && ((packages+="$(kpm --get-selections | grep -cv deinstall$)"))
|
||||||
|
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"FreeBSD") has "pkg" && tot pkg info ;;
|
"FreeBSD") has "pkg" && tot pkg info ;;
|
||||||
|
@ -1774,10 +1774,8 @@ get_cpu() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get CPU temp.
|
# Get CPU temp.
|
||||||
if [[ -f "$temp_dir" ]]; then
|
[[ -f "$temp_dir" ]] && \
|
||||||
deg="$(< "$temp_dir")"
|
deg="$(($(< "$temp_dir") * 100 / 10000))"
|
||||||
deg="$((deg * 100 / 10000))"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get CPU cores.
|
# Get CPU cores.
|
||||||
case "$cpu_cores" in
|
case "$cpu_cores" in
|
||||||
|
|
Reference in New Issue