# Move the the folder where the fonts are available. This script supports only otf and ttf.
# Then simply run the script like
$ ./path/to/script/install-fonts.sh
Or you can add an alias to the ~/.bashrc
or ~/.zshrc
alias install-fonts='/path/to/script/install-fonts.sh'
Then
$ install-fonts
To install the fonts.
Too easy!
Changing line 6 to
find_command="find \"$the_fonts_dir\" \( -iname '*.[o,t]t[f,c]' -or -name '*.pcf.gz' \) -type f -print0"
would be a little more elegant