mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-19 03:00:07 +00:00
check for joined segments when figuring out whether vcs is enabled; fixes #41
This commit is contained in:
parent
e5dbe4fa2e
commit
5bd80d88f1
1 changed files with 4 additions and 2 deletions
|
@ -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]}" ]]
|
||||
}
|
||||
|
||||
################################################################
|
||||
|
|
Loading…
Reference in a new issue