Model: Remove dummy info
This commit is contained in:
parent
19a6357ce9
commit
18cfafa998
1 changed files with 8 additions and 6 deletions
14
neofetch
14
neofetch
|
@ -196,12 +196,6 @@ get_model() {
|
||||||
elif [[ -f /tmp/sysinfo/model ]]; then
|
elif [[ -f /tmp/sysinfo/model ]]; then
|
||||||
model="$(< /tmp/sysinfo/model)"
|
model="$(< /tmp/sysinfo/model)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
model="${model//To Be Filled*}"
|
|
||||||
model="${model//OEM*}"
|
|
||||||
model="${model//Not Applicable}"
|
|
||||||
model="${model//System Product Name}"
|
|
||||||
model="${model//System Version}"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
||||||
|
@ -260,6 +254,14 @@ get_model() {
|
||||||
model="$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')"
|
model="$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Remove dummy OEM info
|
||||||
|
model="${model//To Be Filled*}"
|
||||||
|
model="${model//OEM*}"
|
||||||
|
model="${model//Not Applicable}"
|
||||||
|
model="${model//System Product Name}"
|
||||||
|
model="${model//System Version}"
|
||||||
|
model="${model//Undefined}"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_title() {
|
get_title() {
|
||||||
|
|
Loading…
Reference in a new issue