1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-17 10:10:07 +00:00

don't offer to install font if there is no curl

This commit is contained in:
romkatv 2019-09-04 08:22:41 +02:00
parent 200b02b242
commit 4d63712093

View file

@ -245,6 +245,7 @@ function can_install_font() {
return
fi
if [[ "$(uname)" == Darwin && $TERM_PROGRAM == iTerm.app ]]; then
(( $+commands[curl] )) || return
[[ $TERM_PROGRAM_VERSION == [2-9]* ]] || return
if [[ -f ~/Library/Fonts ]]; then
[[ -d ~/Library/Fonts && -w ~/Library/Fonts ]] || return