From e1c52e08d43652a513379f7bac7c57664c895d43 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 6 Jan 2022 12:37:06 +0100 Subject: [PATCH] add an icon for amazon linux (#1706) --- internal/icons.zsh | 6 ++++++ internal/p10k.zsh | 3 ++- internal/wizard.zsh | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/icons.zsh b/internal/icons.zsh index 60de3444..e3d71ffa 100644 --- a/internal/icons.zsh +++ b/internal/icons.zsh @@ -70,6 +70,7 @@ function _p9k_init_icons() { LINUX_VOID_ICON '\uE271'$s #  LINUX_ARTIX_ICON '\uE271'$s #  LINUX_RHEL_ICON '\uE271'$s #  + LINUX_AMZN_ICON '\uE271'$s #  SUNOS_ICON '\U1F31E'$q # 🌞 HOME_ICON '\uE12C'$s #  HOME_SUB_ICON '\uE18D'$s #  @@ -205,6 +206,7 @@ function _p9k_init_icons() { LINUX_VOID_ICON '\uF17C'$s #  LINUX_ARTIX_ICON '\uF17C'$s #  LINUX_RHEL_ICON '\uF17C'$s #  + LINUX_AMZN_ICON '\uF17C'$s #  SUNOS_ICON '\uF185 ' #  HOME_ICON '\uF015'$s #  HOME_SUB_ICON '\uF07C'$s #  @@ -341,6 +343,7 @@ function _p9k_init_icons() { 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}" + LINUX_AMZN_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}" @@ -470,6 +473,7 @@ function _p9k_init_icons() { LINUX_ARTIX_ICON '\uF17C' #  LINUX_UBUNTU_ICON '\uF31b'$s #  LINUX_RHEL_ICON '\uF316'$s #  + LINUX_AMZN_ICON '\uF270'$s #  LINUX_ICON '\uF17C' #  SUNOS_ICON '\uF185 ' #  HOME_ICON '\uF015'$s #  @@ -600,6 +604,7 @@ function _p9k_init_icons() { LINUX_VOID_ICON 'void' LINUX_ARTIX_ICON 'artix' LINUX_RHEL_ICON 'rhel' + LINUX_AMZN_ICON 'amzn' SUNOS_ICON 'sunos' HOME_ICON '' HOME_SUB_ICON '' @@ -731,6 +736,7 @@ function _p9k_init_icons() { LINUX_VOID_ICON 'Vo' LINUX_ARTIX_ICON 'Art' LINUX_RHEL_ICON 'RH' + LINUX_AMZN_ICON 'Amzn' SUNOS_ICON 'Sun' HOME_ICON '' HOME_SUB_ICON '' diff --git a/internal/p10k.zsh b/internal/p10k.zsh index db3495e9..54ab71df 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -8253,7 +8253,7 @@ _p9k_must_init() { [[ $sig == $_p9k__param_sig ]] && return 1 _p9k_deinit fi - _p9k__param_pat=$'v131\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1' + _p9k__param_pat=$'v132\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1' _p9k__param_pat+=$__p9k_force_term_shell_integration$'\1' _p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1' _p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1' @@ -8380,6 +8380,7 @@ function _p9k_init_cacheable() { *void*) _p9k_set_os Linux LINUX_VOID_ICON;; *artix*) _p9k_set_os Linux LINUX_ARTIX_ICON;; *rhel*) _p9k_set_os Linux LINUX_RHEL_ICON;; + amzn) _p9k_set_os Linux LINUX_AMZN_ICON;; *) _p9k_set_os Linux LINUX_ICON;; esac ;; diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 0b81417a..62564486 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1093,6 +1093,7 @@ function os_icon_name() { *void*) echo LINUX_VOID_ICON;; *artix*) echo LINUX_ARTIX_ICON;; *rhel*) echo LINUX_RHEL_ICON;; + amzn) echo LINUX_AMZN_ICON;; *) echo LINUX_ICON;; esac ;;