diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-03-26 17:29:31 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-03-26 17:29:31 +0300 |
commit | 5bd80d88f116c2b8cc6c94c327db1c790b687a3e (patch) | |
tree | e28c10d69c72b6bbb7e6976df0d1c7977c010d66 /functions | |
parent | e5dbe4fa2e5ba010968be2d35a987e74653ea115 (diff) |
check for joined segments when figuring out whether vcs is enabled; fixes #41
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/utilities.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 0d04413e..c30fa096 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -79,8 +79,10 @@ printSizeHumanReadable() { # * $1: The segment to be tested. segment_in_use() { local key=$1 - [[ -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)$key]}" || - -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)$key]}" ]] + [[ -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)${key}]}" || + -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)${key}_joined]}" || + -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)${key}]}" || + -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)${key}_joined]}" ]] } ################################################################ |