Skip to content

Commit

Permalink
add an icon for amazon linux (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Jan 6, 2022
1 parent fba50d9 commit e1c52e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions internal/icons.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
Expand Down Expand Up @@ -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 #
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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 #
Expand Down Expand Up @@ -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 ''
Expand Down Expand Up @@ -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 ''
Expand Down
3 changes: 2 additions & 1 deletion internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
;;
Expand Down
1 change: 1 addition & 0 deletions internal/wizard.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit e1c52e0

Please sign in to comment.