|
@ -15,11 +15,13 @@ else |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Copy all fonts to user fonts directory |
|
|
# Copy all fonts to user fonts directory |
|
|
|
|
|
echo "Copying fonts..." |
|
|
eval $find_command | xargs -0 -I % cp "%" "$font_dir/" |
|
|
eval $find_command | xargs -0 -I % cp "%" "$font_dir/" |
|
|
|
|
|
|
|
|
# Reset font cache on Linux |
|
|
# Reset font cache on Linux |
|
|
if [[ -n `which fc-cache` ]]; then |
|
|
|
|
|
fc-cache -f $font_dir |
|
|
|
|
|
|
|
|
if command -v fc-cache @>/dev/null ; then |
|
|
|
|
|
echo "Resetting font cache, this may take a moment..." |
|
|
|
|
|
fc-cache -f $font_dir |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "All Powerline fonts installed to $font_dir" |
|
|
echo "All Powerline fonts installed to $font_dir" |