1
0
Fork 0
mirror of synced 2024-11-27 09:45:34 -05:00
zimfw/modules/git-info/functions/coalesce
Eric Nielsen d56bddf4b1 Add coalesce function to git-info
that will be used by the minimal theme, and could be used for future
themes too. Prezto had this, but we diminished its necessity by
simplifying how git-info works.
2017-03-27 13:56:47 -07:00

6 lines
126 B
Text

# Prints the first non-empty string in the arguments array.
for arg in ${argv}; do
print -n ${arg}
return 0
done
return 1