Initial support for Windows 10 Linux subsystem
This commit is contained in:
parent
8f9b320e99
commit
3dff1947b5
11
neofetch
11
neofetch
|
@ -118,7 +118,16 @@ getdistro() {
|
|||
|
||||
case "$os" in
|
||||
"Linux" )
|
||||
if type -p lsb_release >/dev/null 2>&1; then
|
||||
if grep -q 'Microsoft' /proc/version >/dev/null 2>&1 || \
|
||||
grep -q 'Microsoft' /proc/sys/kernel/osrelease >/dev/null 2>&1; then
|
||||
case "$distro_shorthand" in
|
||||
"on") distro="$(lsb_release -sir 2>/dev/null) [Windows 10]" ;;
|
||||
"tiny") distro="Windows 10" ;;
|
||||
*) distro="$(lsb_release -sd 2>/dev/null) on Windows 10" ;;
|
||||
esac
|
||||
ascii_distro="windows10"
|
||||
|
||||
elif type -p lsb_release >/dev/null 2>&1; then
|
||||
case "$distro_shorthand" in
|
||||
"on") distro="$(lsb_release -sir 2>/dev/null)" ;;
|
||||
"tiny") distro="$(lsb_release -si 2>/dev/null)" ;;
|
||||
|
|
Reference in New Issue