From 0ce9df66d2cffb860a7c48a8d4f3639cf581f908 Mon Sep 17 00:00:00 2001 From: Charles Timko Date: Wed, 22 Sep 2021 13:49:39 -0400 Subject: [PATCH] Add RHEL to the OS Icon lists (#1581) * Add RHEL to the OS Icon lists --- internal/icons.zsh | 6 ++++++ internal/p10k.zsh | 1 + internal/wizard.zsh | 1 + 3 files changed, 8 insertions(+) diff --git a/internal/icons.zsh b/internal/icons.zsh index dfbe0a00..60de3444 100644 --- a/internal/icons.zsh +++ b/internal/icons.zsh @@ -69,6 +69,7 @@ function _p9k_init_icons() { LINUX_SLACKWARE_ICON '\uE271'$s #  LINUX_VOID_ICON '\uE271'$s #  LINUX_ARTIX_ICON '\uE271'$s #  + LINUX_RHEL_ICON '\uE271'$s #  SUNOS_ICON '\U1F31E'$q # 🌞 HOME_ICON '\uE12C'$s #  HOME_SUB_ICON '\uE18D'$s #  @@ -203,6 +204,7 @@ function _p9k_init_icons() { LINUX_SLACKWARE_ICON '\uF17C'$s #  LINUX_VOID_ICON '\uF17C'$s #  LINUX_ARTIX_ICON '\uF17C'$s #  + LINUX_RHEL_ICON '\uF17C'$s #  SUNOS_ICON '\uF185 ' #  HOME_ICON '\uF015'$s #  HOME_SUB_ICON '\uF07C'$s #  @@ -338,6 +340,7 @@ function _p9k_init_icons() { LINUX_SLACKWARE_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}" LINUX_VOID_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}" LINUX_ARTIX_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}" + LINUX_RHEL_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}" SUNOS_ICON "${CODEPOINT_OF_AWESOME_SUN_O:+\\u$CODEPOINT_OF_AWESOME_SUN_O }" HOME_ICON "${CODEPOINT_OF_AWESOME_HOME:+\\u$CODEPOINT_OF_AWESOME_HOME$s}" HOME_SUB_ICON "${CODEPOINT_OF_AWESOME_FOLDER_OPEN:+\\u$CODEPOINT_OF_AWESOME_FOLDER_OPEN$s}" @@ -466,6 +469,7 @@ function _p9k_init_icons() { LINUX_VOID_ICON '\uF17C' #  LINUX_ARTIX_ICON '\uF17C' #  LINUX_UBUNTU_ICON '\uF31b'$s #  + LINUX_RHEL_ICON '\uF316'$s #  LINUX_ICON '\uF17C' #  SUNOS_ICON '\uF185 ' #  HOME_ICON '\uF015'$s #  @@ -595,6 +599,7 @@ function _p9k_init_icons() { LINUX_SLACKWARE_ICON 'slack' LINUX_VOID_ICON 'void' LINUX_ARTIX_ICON 'artix' + LINUX_RHEL_ICON 'rhel' SUNOS_ICON 'sunos' HOME_ICON '' HOME_SUB_ICON '' @@ -725,6 +730,7 @@ function _p9k_init_icons() { LINUX_SLACKWARE_ICON 'Sla' LINUX_VOID_ICON 'Vo' LINUX_ARTIX_ICON 'Art' + LINUX_RHEL_ICON 'RH' SUNOS_ICON 'Sun' HOME_ICON '' HOME_SUB_ICON '' diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 98090d99..6928b8fc 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -8286,6 +8286,7 @@ function _p9k_init_cacheable() { *manjaro*) _p9k_set_os Linux LINUX_MANJARO_ICON;; *void*) _p9k_set_os Linux LINUX_VOID_ICON;; *artix*) _p9k_set_os Linux LINUX_ARTIX_ICON;; + *rhel*) _p9k_set_os Linux LINUX_RHEL_ICON;; *) _p9k_set_os Linux LINUX_ICON;; esac ;; diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 7e91a1c7..9dbfe81d 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1103,6 +1103,7 @@ function os_icon_name() { *manjaro*) echo LINUX_MANJARO_ICON;; *void*) echo LINUX_VOID_ICON;; *artix*) echo LINUX_ARTIX_ICON;; + *rhel*) echo LINUX_RHEL_ICON;; *) echo LINUX_ICON;; esac ;;