added LINUX_*_ICON for several OS

pull/22/head
Tim Otlik 7 years ago
parent fd3d234354
commit 845e74c5c3
No known key found for this signature in database
GPG Key ID: 64694C30F7E8E0D3

@ -277,6 +277,21 @@ case $POWERLEVEL9K_MODE in
WINDOWS_ICON $'\uF17A' #  WINDOWS_ICON $'\uF17A' # 
FREEBSD_ICON $'\UF30E ' #  FREEBSD_ICON $'\UF30E ' # 
ANDROID_ICON $'\uF17B' #  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' #  LINUX_ICON $'\uF17C' # 
SUNOS_ICON $'\uF185 ' #  SUNOS_ICON $'\uF185 ' # 
HOME_ICON $'\uF015' #  HOME_ICON $'\uF015' # 

@ -105,6 +105,22 @@ case $(uname) in
OS='Linux' OS='Linux'
OS_ICON=$(print_icon 'LINUX_ICON') 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 # Check if we're running on Android
case $(uname -o 2>/dev/null) in case $(uname -o 2>/dev/null) in
Android) Android)

Loading…
Cancel
Save