mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
don't offer to install font if there is no curl
This commit is contained in:
parent
200b02b242
commit
4d63712093
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue