1
0
Fork 0
mirror of synced 2024-12-22 22:18:57 -05:00
zimfw/modules/git-info/functions/coalesce
Eric Nielsen 539f8ae8df [git] Move git-action to its own autoloadable file
instead of redefining the function constantly inside git-info.
2018-05-09 20:22:32 -05:00

7 lines
153 B
Bash

# vim:et sts=2 sw=2 ft=zsh
# Prints the first non-empty string in the arguments array.
for arg in ${argv}; do
print -n ${arg}
return 0
done
return 1