mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-26 00:41:57 +00:00
nag users to restart iTerm2 after installing fonts
This commit is contained in:
parent
541646c12e
commit
553bf08a74
1 changed files with 11 additions and 4 deletions
|
@ -350,10 +350,17 @@ function install_font() {
|
||||||
print -P ""
|
print -P ""
|
||||||
print -P "Please %Brestart iTerm2%b for the changes to take effect."
|
print -P "Please %Brestart iTerm2%b for the changes to take effect."
|
||||||
print -P ""
|
print -P ""
|
||||||
|
while true; do
|
||||||
flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
|
flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
|
||||||
flowing +c -i 5 " 2. Open %BiTerm2%b."
|
flowing +c -i 5 " 2. Open %BiTerm2%b."
|
||||||
print -P ""
|
print -P ""
|
||||||
exit 69
|
local key=
|
||||||
|
read -k key${(%):-"?%BWill you restart iTerm2 before proceeding? [yN]: %b" || quit -c
|
||||||
|
[[ $key = (y|Y) ]] && exit 69
|
||||||
|
print -P ""
|
||||||
|
print -P "It's important to %Brestart iTerm2%b for the changes to take effect."
|
||||||
|
print -P ""
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue