mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
make it more difficult to incorrectly restart iTerm2 after installing Meslo
This commit is contained in:
parent
a124a71032
commit
b1aeeda6a8
1 changed files with 11 additions and 17 deletions
|
@ -280,6 +280,8 @@ function quit() {
|
||||||
print -P ""
|
print -P ""
|
||||||
fi
|
fi
|
||||||
function quit() {}
|
function quit() {}
|
||||||
|
stty echo 2>/dev/null
|
||||||
|
show_cursor
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -554,28 +556,20 @@ function install_font() {
|
||||||
sleep 3
|
sleep 3
|
||||||
print -P " %2FOK%f"
|
print -P " %2FOK%f"
|
||||||
sleep 1
|
sleep 1
|
||||||
restore_screen
|
clear
|
||||||
|
hide_cursor
|
||||||
print
|
print
|
||||||
flowing +c "%2FMeslo Nerd Font%f" successfully installed.
|
flowing +c "%2FMeslo Nerd Font%f" successfully installed.
|
||||||
print -P ""
|
print -P ""
|
||||||
flowing +c Please "%Brestart iTerm2%b" for the changes to take effect.
|
flowing +c 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 ""
|
flowing +c "It's" important to "%Brestart iTerm2%b" by following the instructions above. \
|
||||||
local key=
|
"It's" "%Bnot enough%b" to close iTerm2 by clicking on the red circle. You must \
|
||||||
read -k key${(%):-"?%BWill you restart iTerm2 before proceeding? [yN]: %b"} || quit -c
|
click "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
|
||||||
if [[ $key = (y|Y) ]]; then
|
while true; do sleep 60 2>/dev/null; done
|
||||||
print -P ""
|
|
||||||
print -P ""
|
|
||||||
exit 69
|
|
||||||
fi
|
|
||||||
print -P ""
|
|
||||||
print -P ""
|
|
||||||
flowing +c "It's" important to "%Brestart iTerm2%b" for the changes to take effect.
|
|
||||||
print -P ""
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue