1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

try to fix font instllation problems on mac

This commit is contained in:
romkatv 2020-02-26 15:49:03 +01:00
parent ff496ab2ba
commit ffbf86903d

View file

@ -322,7 +322,8 @@ function install_font() {
for style in Regular Bold Italic 'Bold Italic'; do
local file="MesloLGS NF ${style}.ttf"
run_command "Downloading %B$file%b" \
curl -fsSL -o ~/Library/Fonts/$file "$font_base_url/${file// /%20}"
curl -fsSL -o ~/Library/Fonts/$file.tmp "$font_base_url/${file// /%20}"
zf_mv -f -- ~/Library/Fonts/$file{.tmp,} || quit -c
done
print -nP -- "Changing %BiTerm2%b settings ..."
local k t v settings=(