Support new Build: syntax in completion; retab

This commit is contained in:
Daniel Martí 2013-10-29 00:19:33 +01:00
parent 8627357cd9
commit c47b1dc286

View file

@ -54,10 +54,16 @@ __vercode() {
} }
COMPREPLY=( $( compgen -W "$( while read line; do COMPREPLY=( $( compgen -W "$( while read line; do
[[ "$line" == "Build Version:"* ]] && { if [[ "$line" == "Build Version:"* ]]
then
line="${line#*,}" line="${line#*,}"
printf "${line%%,*} " printf "${line%%,*} "
} done < "metadata/${p}.txt" )" -- $cur ) ) elif [[ "$line" == "Build:"* ]]
then
line="${line#*,}"
printf "${line%%,*} "
fi
done < "metadata/${p}.txt" )" -- $cur ) )
} }
__complete_options() { __complete_options() {