1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-17 18:20:07 +00:00

added LINUX_*_ICON for several OS

This commit is contained in:
Tim Otlik 2018-02-16 12:56:47 +01:00
parent fd3d234354
commit 845e74c5c3
No known key found for this signature in database
GPG key ID: 64694C30F7E8E0D3
2 changed files with 32 additions and 1 deletions

View file

@ -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' # 

View file

@ -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)