mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
don't offer to install font if there is no curl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user