Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1226 from matt1003/master
Browse files Browse the repository at this point in the history
[Bugfix] Ensure that vcs init is invoked when using the "vcs_joined" segment.
  • Loading branch information
dritter committed Mar 31, 2019
2 parents c4a8118 + 1015b38 commit 469ff8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions functions/utilities.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,10 @@ fi
# * $1: The segment to be tested.
segment_in_use() {
local key=$1
if [[ -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)$key]}" ]] || [[ -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)$key]}" ]]; then
return 0
else
return 1
fi
[[ -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]}" ]]
}
# Print a deprecation warning if an old segment is in use.
Expand Down

0 comments on commit 469ff8d

Please sign in to comment.