mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
OS: Added support for MinGW
This commit is contained in:
6
neofetch
6
neofetch
@@ -38,7 +38,7 @@ get_os() {
|
|||||||
"Linux" | "GNU"*) os="Linux" ;;
|
"Linux" | "GNU"*) os="Linux" ;;
|
||||||
"Darwin") os="$(sw_vers -productName)" ;;
|
"Darwin") os="$(sw_vers -productName)" ;;
|
||||||
*"BSD" | "DragonFly" | "Bitrig") os="BSD" ;;
|
*"BSD" | "DragonFly" | "Bitrig") os="BSD" ;;
|
||||||
"CYGWIN"* | "MSYS"*) os="Windows" ;;
|
"CYGWIN"* | "MSYS"* | "MINGW"*) os="Windows" ;;
|
||||||
"SunOS") os="Solaris" ;;
|
"SunOS") os="Solaris" ;;
|
||||||
"Haiku") os="Haiku" ;;
|
"Haiku") os="Haiku" ;;
|
||||||
"MINIX") os="MINIX" ;;
|
"MINIX") os="MINIX" ;;
|
||||||
@@ -1967,7 +1967,7 @@ get_install_date() {
|
|||||||
"Windows")
|
"Windows")
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"CYGWIN"*) install_file="/cygdrive/c/Windows/explorer.exe" ;;
|
"CYGWIN"*) install_file="/cygdrive/c/Windows/explorer.exe" ;;
|
||||||
"MSYS"*) install_file="/c/Windows/explorer.exe" ;;
|
"MSYS"* | "MINGW"*) install_file="/c/Windows/explorer.exe" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"Haiku") install_file="/boot" ;;
|
"Haiku") install_file="/boot" ;;
|
||||||
@@ -2222,7 +2222,7 @@ get_wallpaper() {
|
|||||||
"Windows XP")
|
"Windows XP")
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"CYGWIN"*) image="/cygdrive/c/Documents and Settings/${USER}" ;;
|
"CYGWIN"*) image="/cygdrive/c/Documents and Settings/${USER}" ;;
|
||||||
"MSYS2"*) image="/c/Documents and Settings/${USER}" ;;
|
"MSYS2"* | "MINGW*") image="/c/Documents and Settings/${USER}" ;;
|
||||||
esac
|
esac
|
||||||
image+="/Local Settings/Application Data/Microsoft"
|
image+="/Local Settings/Application Data/Microsoft"
|
||||||
image+="/Wallpaper1.bmp"
|
image+="/Wallpaper1.bmp"
|
||||||
|
|||||||
Reference in New Issue
Block a user