Update neofetch
This commit is contained in:
parent
3b3c28cbe6
commit
6758bfb765
6
neofetch
6
neofetch
|
@ -1210,6 +1210,12 @@ get_kernel() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# In Windows 'uname -r' under MSYS returns a "virtual" kernel version, so use wmic
|
||||||
|
[[ "$os" == Windows ]] && {
|
||||||
|
kernel_version=$(wmic os get Version)
|
||||||
|
kernel_version="${kernel_version/Version}"
|
||||||
|
}
|
||||||
|
|
||||||
case "$kernel_shorthand" in
|
case "$kernel_shorthand" in
|
||||||
"on") kernel="$kernel_version" ;;
|
"on") kernel="$kernel_version" ;;
|
||||||
"off") kernel="$kernel_name $kernel_version" ;;
|
"off") kernel="$kernel_name $kernel_version" ;;
|
||||||
|
|
Reference in New Issue