1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

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.
This commit is contained in:
Eric Nielsen 2017-03-15 09:40:22 -05:00
parent 96d6b66de1
commit d440135f52

View file

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