This commit is contained in:
Inkyu Oh 2026-07-30 09:13:43 +02:00 committed by GitHub
commit 0e05760b0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,11 +232,14 @@ function handle_update() {
# Ask for confirmation and only update on 'y', 'Y' or Enter
# Otherwise just show a reminder for how to update
# ㅛ (U+315B) is the character produced at the Y key position on the Korean
# Dubeolsik layout, so it is accepted too to avoid cancelling the update
# when a Korean IME is active.
printf "[oh-my-zsh] Would you like to update? [Y/n] "
read -r -k 1 option
[[ "$option" = $'\n' ]] || echo
case "$option" in
[yY$'\n']) update_ohmyzsh ;;
[yY$'\n']|$'ㅛ') update_ohmyzsh ;;
[nN]) update_last_updated_file ;&
*) echo "[oh-my-zsh] You can update manually by running \`omz update\`" ;;
esac