Skip to content

Commit

Permalink
Merge pull request #134 from CarlQLange/patch-1
Browse files Browse the repository at this point in the history
only try fc-cache reset on linux
  • Loading branch information
Lokaltog committed Nov 18, 2015
2 parents 077977c + ff1bbd2 commit 6ac4c01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ else
fi

# Copy all fonts to user fonts directory
echo "Copying fonts..."
eval $find_command | xargs -0 -I % cp "%" "$font_dir/"

# 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

echo "All Powerline fonts installed to $font_dir"

0 comments on commit 6ac4c01

Please sign in to comment.