mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 09:57:13 +00:00
Added windows version detection
This commit is contained in:
26
fetch.sh
26
fetch.sh
@@ -250,7 +250,31 @@ getdistro () {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
distro="Windows"
|
case "$(cmd /c ver)" in
|
||||||
|
*"XP"*)
|
||||||
|
distro="Windows XP"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*"7"*)
|
||||||
|
distro="Windows 7"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*"8.1"*)
|
||||||
|
distro="Windows 8.1"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*"8"*)
|
||||||
|
distro="Windows 8"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*"10"*)
|
||||||
|
distro="Windows 10"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
distro="Windows"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user