From 12a99c087d1005c9ea783a4a1b1c89ad7b7ff647 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 23 Jul 2019 16:20:59 +0200 Subject: continue param refactoring --- functions/utilities.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'functions') diff --git a/functions/utilities.zsh b/functions/utilities.zsh index f0263ce6..4d731eb4 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -90,10 +90,8 @@ function _p9k_human_readable_bytes() { # either the LEFT or RIGHT prompt arrays. # * $1: The segment to be tested. segment_in_use() { - [[ -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)${1}]}" || - -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)${1}_joined]}" || - -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)${1}]}" || - -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)${1}_joined]}" ]] + (( $_POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(I)$1(|_joined)] || + $_POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(I)$1(|_joined)] )) } function _p9k_parse_ip() { -- cgit v1.2.3