mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-12 00:56:41 +00:00
check for joined segments when figuring out whether vcs is enabled; fixes #41
This commit is contained in:
parent
e5dbe4fa2e
commit
5bd80d88f1
@ -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 New Issue
Block a user