mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
better iTerm version filter
This commit is contained in:
parent
298fa2f325
commit
200b02b242
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ function can_install_font() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [[ "$(uname)" == Darwin && $TERM_PROGRAM == iTerm.app ]]; then
|
if [[ "$(uname)" == Darwin && $TERM_PROGRAM == iTerm.app ]]; then
|
||||||
[[ $TERM_PROGRAM_VERSION == (2|3)* ]] || return
|
[[ $TERM_PROGRAM_VERSION == [2-9]* ]] || return
|
||||||
if [[ -f ~/Library/Fonts ]]; then
|
if [[ -f ~/Library/Fonts ]]; then
|
||||||
[[ -d ~/Library/Fonts && -w ~/Library/Fonts ]] || return
|
[[ -d ~/Library/Fonts && -w ~/Library/Fonts ]] || return
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue