summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-10-19 17:36:25 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-10-19 17:36:25 +0300
commitb1aeeda6a80974f419bc598d42a993cfc8b2c3fa (patch)
treea5e60fd8013f3c1e05deb6afb574530dfcd5e7e1 /internal/wizard.zsh
parenta124a7103236124c95128f71da632f50d426ba7c (diff)
make it more difficult to incorrectly restart iTerm2 after installing Meslo
Diffstat (limited to 'internal/wizard.zsh')
-rw-r--r--internal/wizard.zsh28
1 files changed, 11 insertions, 17 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index a1b87220..5999724d 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -280,6 +280,8 @@ function quit() {
print -P ""
fi
function quit() {}
+ stty echo 2>/dev/null
+ show_cursor
exit 1
}
@@ -554,28 +556,20 @@ function install_font() {
sleep 3
print -P " %2FOK%f"
sleep 1
- restore_screen
+ clear
+ hide_cursor
print
flowing +c "%2FMeslo Nerd Font%f" successfully installed.
print -P ""
flowing +c Please "%Brestart iTerm2%b" for the changes to take effect.
print -P ""
- while true; do
- flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
- flowing +c -i 5 " 2. Open %BiTerm2%b."
- print -P ""
- local key=
- read -k key${(%):-"?%BWill you restart iTerm2 before proceeding? [yN]: %b"} || quit -c
- if [[ $key = (y|Y) ]]; then
- 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
+ flowing +c -i 5 " 1. Click" "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
+ flowing +c -i 5 " 2. Open %BiTerm2%b."
+ print -P ""
+ flowing +c "It's" important to "%Brestart iTerm2%b" by following the instructions above. \
+ "It's" "%Bnot enough%b" to close iTerm2 by clicking on the red circle. You must \
+ click "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
+ while true; do sleep 60 2>/dev/null; done
;;
esac