From 813a2b12f24badb8e968a08c9886e4eaeed64d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ems=E2=89=88Spree?= <19785245+emsspree@users.noreply.github.com> Date: Fri, 7 Jun 2019 22:58:35 +0200 Subject: [PATCH] macOS: set $font_dir to a subdir of Fonts copy file into "$HOME/Library/Fonts/Powerline" instead of "$HOME/Library/Fonts". --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index eab1ccd0..1992acac 100755 --- a/install.sh +++ b/install.sh @@ -8,9 +8,9 @@ prefix="$1" if test "$(uname)" = "Darwin" ; then # MacOS - font_dir="$HOME/Library/Fonts" + font_dir="$HOME/Library/Fonts/Powerline" else - # Linux + # other font_dir="$HOME/.local/share/fonts" mkdir -p $font_dir fi @@ -19,7 +19,7 @@ fi echo "Copying fonts..." find "$powerline_fonts_dir" \( -name "$prefix*.[ot]tf" -or -name "$prefix*.pcf.gz" \) -type f -print0 | xargs -0 -n1 -I % cp "%" "$font_dir/" -# Reset font cache on Linux +# Reset font cache on Linux (and macOS if applicable) if which fc-cache >/dev/null 2>&1 ; then echo "Resetting font cache, this may take a moment..." fc-cache -f "$font_dir"