detect artix linux for the sake of displaying os logo; see #898

This commit is contained in:
Roman Perepelitsa 2020-07-19 11:26:19 +02:00
commit 7a114ad6fb
3 changed files with 13 additions and 1 deletions

View file

@ -1047,6 +1047,8 @@ function os_icon_name() {
local lines=(${(f)"$(</etc/os-release)"})
lines=(${(@M)lines:#ID=*})
(( $#lines == 1 )) && os_release_id=${lines[1]#ID=}
elif [[ -e /etc/artix-release ]]; then
os_release_id=artix
fi
case $os_release_id in
*arch*) echo LINUX_ARCH_ICON;;
@ -1069,6 +1071,7 @@ function os_icon_name() {
*devuan*) echo LINUX_DEVUAN_ICON;;
*manjaro*) echo LINUX_MANJARO_ICON;;
*void*) echo LINUX_VOID_ICON;;
*artix*) echo LINUX_ARTIX_ICON;;
*) echo LINUX_ICON;;
esac
;;