diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-03-14 20:00:10 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-03-14 20:00:10 +0300 |
commit | af9c7adfd0b3df862a571f2a9257cc733ba03436 (patch) | |
tree | a87ab391a330a4e5ff44adcd50265110b4fcc4d6 /powerlevel9k.zsh-theme | |
parent | ada73dc8439831bacc99d79e1dc9edaff8f4a168 (diff) |
fix linux distro icons
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 701bd99b..a7636fc7 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -2119,8 +2119,7 @@ _p9k_init() { OS='Linux' local os_release_id [[ -f /etc/os-release && - "${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" && - os_release_id="${match[1]}" ]] + "${(f)$((</etc/os-release) 2>/dev/null)}" =~ "ID=([A-Za-z]+)" ]] && os_release_id="${match[1]}" case "$os_release_id" in *arch*) set_os Linux LINUX_ARCH_ICON;; *debian*) set_os Linux LINUX_DEBIAN_ICON;; |