1
0
Fork 0
mirror of synced 2024-06-22 00:11:10 -04: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

7 lines
126 B
Plaintext

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