dotfiles/zsh/modules/git-info/functions/coalesce
2018-04-05 13:06:54 +02: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