diff --git a/neofetch b/neofetch index 742349b4..0b2358b3 100755 --- a/neofetch +++ b/neofetch @@ -1216,6 +1216,13 @@ get_kernel() { kernel=$(uname -v) return } + + # In Windows 'uname' may return the info of GNUenv thus use wmic for OS kernel + [[ "$os" == Windows ]] && { + kernel=$(wmic os get Version) + kernel="${kernel/Version}" + return + } case $kernel_shorthand in on) kernel=$kernel_version ;;