|
|
@ -3,7 +3,10 @@ |
|
|
|
# Set source and target directories |
|
|
|
powerline_fonts_dir=$( cd "$( dirname "$0" )" && pwd ) |
|
|
|
|
|
|
|
find_command="find \"$powerline_fonts_dir\" \( -name '*.[o,t]tf' -or -name '*.pcf.gz' \) -type f -print0" |
|
|
|
# if an argument is given it is used to select wich fonts to install |
|
|
|
prefix="$1" |
|
|
|
|
|
|
|
find_command="find \"$powerline_fonts_dir\" \( -name '$prefix*.[o,t]tf' -or -name '$prefix*.pcf.gz' \) -type f -print0" |
|
|
|
|
|
|
|
if [[ `uname` == 'Darwin' ]]; then |
|
|
|
# MacOS |
|
|
@ -24,4 +27,4 @@ if command -v fc-cache @>/dev/null ; then |
|
|
|
fc-cache -f $font_dir |
|
|
|
fi |
|
|
|
|
|
|
|
echo "All Powerline fonts installed to $font_dir" |
|
|
|
echo "Powerline fonts installed to $font_dir" |