Skip to content

Commit

Permalink
Merge pull request powerline#87 from tthayer/patch-1
Browse files Browse the repository at this point in the history
Update install.sh
  • Loading branch information
Lokaltog committed Nov 4, 2014
2 parents 963daa1 + 109a62b commit 6d43495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# 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 [[ `uname` == 'Darwin' ]]; then
# MacOS
font_dir="$HOME/Library/Fonts"
Expand All @@ -13,7 +15,6 @@ else
fi

# Copy all fonts to user fonts directory
find_command="find $powerline_fonts_dir -name '*.[o,t]tf' -o -name '*.pcf.gz' -type f -print0"
eval $find_command | xargs -0 -I % cp % $font_dir/

# Reset font cache on Linux
Expand Down

0 comments on commit 6d43495

Please sign in to comment.