1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-07-01 12:50:27 +00:00

Filter other remote branches.

This commit is contained in:
Sorin Ionescu 2012-02-02 16:50:47 -05:00
parent 42be3d01f0
commit 304530d990

View File

@ -26,6 +26,7 @@ case "$state" in
remote="$words[(($CURRENT - 1))]"
branches=($(
git branch -r \
| grep "${remote}/" \
| sed \
-e "/${remote}\/HEAD -> ${remote}/d" \
-e "s/^[[:space:]]*${remote}\///g"