You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the distro module gets the OS name by guessing Arch Linux if /etc/pacman.conf exists, and falling back to uname -o otherwise.
I propose that (per man 5 os-release) it check whichever of /etc/os-release and /usr/lib/os-release, is found first; and use PRETTY_NAME, fall back to NAME, fall back to ID, then finally fall back to uname -o.
Relatedly, having the default color be os-release:ANSI_COLOR wouldn't be a bad idea either.
The text was updated successfully, but these errors were encountered:
Currently the
distro
module gets the OS name by guessingArch Linux
if/etc/pacman.conf
exists, and falling back touname -o
otherwise.I propose that (per
man 5 os-release
) it check whichever of/etc/os-release
and/usr/lib/os-release
, is found first; and usePRETTY_NAME
, fall back toNAME
, fall back toID
, then finally fall back touname -o
.Relatedly, having the default color be
os-release:ANSI_COLOR
wouldn't be a bad idea either.The text was updated successfully, but these errors were encountered: