From 845e74c5c3daff3f3d5a5f2a10edde279627c5b5 Mon Sep 17 00:00:00 2001 From: Tim Otlik Date: Fri, 16 Feb 2018 12:56:47 +0100 Subject: [PATCH] added LINUX_*_ICON for several OS --- functions/icons.zsh | 17 ++++++++++++++++- functions/utilities.zsh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index e642da00..25546e77 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -151,7 +151,7 @@ case $POWERLEVEL9K_MODE in VCS_GIT_GITLAB_ICON $'\uF296 ' #  VCS_HG_ICON $'\uF0C3 ' #  VCS_SVN_ICON '(svn) ' - RUST_ICON $'\uE6A8' #  + RUST_ICON $'\uE6A8' #  PYTHON_ICON $'\ue63c' #  SWIFT_ICON '' GO_ICON '' @@ -277,6 +277,21 @@ case $POWERLEVEL9K_MODE in WINDOWS_ICON $'\uF17A' #  FREEBSD_ICON $'\UF30E ' #  ANDROID_ICON $'\uF17B' #  + LINUX_ARCH_ICON $'\uF300' #  + LINUX_DEBIAN_ICON $'\uF302' #  + LINUX_UBUNTU_ICON $'\uF30C' #  + LINUX_CENTOS_ICON $'\uF301' #  + LINUX_COREOS_ICON $'\uF30F' #  + LINUX_ELEMENTARY_ICON $'\uF311' #  + LINUX_FEDORA_ICON $'\uF303' #  + LINUX_GENTOO_ICON $'\uF310' #  + LINUX_MINT_ICON $'\uF304' #  + LINUX_MAGEIA_ICON $'\uF306' #  + LINUX_MANDRIVA_ICON $'\uF307' #  + LINUX_OPENSUSE_ICON $'\uF308' #  + LINUX_REDHAT_ICON $'\uF309' #  + LINUX_SABAYON_ICON $'\uF313' #  + LINUX_SLACKWARE_ICON $'\uF30A' #  LINUX_ICON $'\uF17C' #  SUNOS_ICON $'\uF185 ' #  HOME_ICON $'\uF015' #  diff --git a/functions/utilities.zsh b/functions/utilities.zsh index b4bfb838..5f41f73e 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -105,6 +105,22 @@ case $(uname) in OS='Linux' OS_ICON=$(print_icon 'LINUX_ICON') + # Check if the OS is debian + if [ `lsb_release -si`="Debian" ]; then + OS='Debian' + OS_ICON=$(print_icon 'LINUX_DEBIAN_ICON') + fi + # Check if the OS is ubuntu + if [ `lsb_release -si`="Ubuntu" ]; then + OS='Ubuntu' + OS_ICON=$(print_icon 'LINUX_Ubuntu_ICON') + fi + # Check if the OS is mint + if [ `lsb_release -si`="Mint" ]; then + OS='Mint' + OS_ICON=$(print_icon 'LINUX_MINT_ICON') + fi + # Check if we're running on Android case $(uname -o 2>/dev/null) in Android)