mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-14 09:00:07 +00:00
wizard: after installing the font on iTerm2, ask for system reboot if iTerm2 session restoration is enabled
This commit is contained in:
parent
7cb7ee07be
commit
4050729e48
1 changed files with 19 additions and 8 deletions
|
@ -563,6 +563,14 @@ function install_font() {
|
||||||
print
|
print
|
||||||
flowing +c "%2FMeslo Nerd Font%f" successfully installed.
|
flowing +c "%2FMeslo Nerd Font%f" successfully installed.
|
||||||
print -P ""
|
print -P ""
|
||||||
|
() {
|
||||||
|
local out
|
||||||
|
out=$(/usr/bin/defaults read 'Apple Global Domain' NSQuitAlwaysKeepsWindows 2>/dev/null) || return
|
||||||
|
[[ $out == 1 ]] || return
|
||||||
|
out="$(iterm_get OpenNoWindowsAtStartup 2>/dev/null)" || return
|
||||||
|
[[ $out == false ]]
|
||||||
|
}
|
||||||
|
if (( $? )); then
|
||||||
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 ""
|
||||||
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."
|
||||||
|
@ -571,6 +579,9 @@ function install_font() {
|
||||||
flowing +c "It's" important to "%Brestart iTerm2%b" by following the instructions above. \
|
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 \
|
"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."
|
click "%BiTerm2 → Quit iTerm2%b" or press "%B⌘ Q%b."
|
||||||
|
else
|
||||||
|
flowing +c Please "%Brestart your computer%b" for the changes to take effect.
|
||||||
|
fi
|
||||||
while true; do sleep 60 2>/dev/null; done
|
while true; do sleep 60 2>/dev/null; done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue