How can I check the conditions to install the powerline fonts in each of the ways outlined here? I want to add this to a configuration script I have.
if terminal == gnome || terminal == ...; then
Fontconfig method;
else
git clone powerline fonts
./install
fi