aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/icons.zsh4
-rw-r--r--functions/utilities.zsh10
2 files changed, 13 insertions, 1 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh
index ed3482de..c2cdcba5 100644
--- a/functions/icons.zsh
+++ b/functions/icons.zsh
@@ -43,6 +43,7 @@ case $POWERLEVEL9K_MODE in
MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 '
APPLE_ICON $'\uE26E' # 
FREEBSD_ICON $'\U1F608 ' # 😈
+ ANDROID_ICON $'\uE270' # 
LINUX_ICON $'\uE271' # 
SUNOS_ICON $'\U1F31E ' # 🌞
HOME_ICON $'\uE12C' # 
@@ -112,6 +113,7 @@ case $POWERLEVEL9K_MODE in
MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─
APPLE_ICON $'\uF179' # 
FREEBSD_ICON $'\U1F608 ' # 😈
+ ANDROID_ICON $'\uE17B' # 
LINUX_ICON $'\uF17C' # 
SUNOS_ICON $'\uF185 ' # 
HOME_ICON $'\uF015' # 
@@ -177,6 +179,7 @@ case $POWERLEVEL9K_MODE in
MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─
APPLE_ICON $'\uF179' # 
FREEBSD_ICON $'\UF30E ' # 
+ ANDROID_ICON $'\uF17B' # 
LINUX_ICON $'\uF17C' # 
SUNOS_ICON $'\uF185 ' # 
HOME_ICON $'\uF015' # 
@@ -242,6 +245,7 @@ case $POWERLEVEL9K_MODE in
MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\u2500 '
APPLE_ICON 'OSX'
FREEBSD_ICON 'BSD'
+ ANDROID_ICON 'And'
LINUX_ICON 'Lx'
SUNOS_ICON 'Sun'
HOME_ICON ''
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index 22b53c6a..86e5ba0e 100644
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -79,7 +79,7 @@ function getRelevantItem() {
done
}
-# OS detection for the `os_icon` segment
+# OS detection
case $(uname) in
Darwin)
OS='OSX'
@@ -100,6 +100,14 @@ case $(uname) in
Linux)
OS='Linux'
OS_ICON=$(print_icon 'LINUX_ICON')
+
+ # Check if we're running on Android
+ case $(uname -o 2>/dev/null) in
+ Android)
+ OS='Android'
+ OS_ICON=$(print_icon 'ANDROID_ICON')
+ ;;
+ esac
;;
SunOS)
OS='Solaris'