From e6c37b6bc5ba26928ce75720d7fa1c2addb5ccac Mon Sep 17 00:00:00 2001 From: guixxx Date: Sun, 7 May 2017 10:34:54 -0300 Subject: Icons for Windows/Cygwin + Refixes 32-bit support --- functions/icons.zsh | 4 ++++ functions/utilities.zsh | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'functions') diff --git a/functions/icons.zsh b/functions/icons.zsh index c2cdcba5..7b3bba78 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -42,6 +42,7 @@ case $POWERLEVEL9K_MODE in MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' APPLE_ICON $'\uE26E' #  + WINDOWS_ICON $'\uE26F' #  FREEBSD_ICON $'\U1F608 ' # 😈 ANDROID_ICON $'\uE270' #  LINUX_ICON $'\uE271' #  @@ -112,6 +113,7 @@ case $POWERLEVEL9K_MODE in MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' # ╭─ MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─ APPLE_ICON $'\uF179' #  + WINDOWS_ICON $'\uF17A' #  FREEBSD_ICON $'\U1F608 ' # 😈 ANDROID_ICON $'\uE17B' #  LINUX_ICON $'\uF17C' #  @@ -178,6 +180,7 @@ case $POWERLEVEL9K_MODE in MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' # ╭─ MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─ APPLE_ICON $'\uF179' #  + WINDOWS_ICON $'\uF17A' #  FREEBSD_ICON $'\UF30E ' #  ANDROID_ICON $'\uF17B' #  LINUX_ICON $'\uF17C' #  @@ -244,6 +247,7 @@ case $POWERLEVEL9K_MODE in MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\u2500' MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\u2500 ' APPLE_ICON 'OSX' + WINDOWS_ICON 'WIN' FREEBSD_ICON 'BSD' ANDROID_ICON 'And' LINUX_ICON 'Lx' diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 86e5ba0e..9bd82060 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -85,6 +85,10 @@ case $(uname) in OS='OSX' OS_ICON=$(print_icon 'APPLE_ICON') ;; + CYGWIN_NT-*) + OS='Windows' + OS_ICON=$(print_icon 'WINDOWS_ICON') + ;; FreeBSD) OS='BSD' OS_ICON=$(print_icon 'FREEBSD_ICON') -- cgit v1.2.3