mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
feat: allow backspace correction in update prompt
This commit is contained in:
parent
5292fea2ba
commit
6424ca0ead
1 changed files with 2 additions and 3 deletions
|
|
@ -233,10 +233,9 @@ function handle_update() {
|
||||||
# Ask for confirmation and only update on 'y', 'Y' or Enter
|
# Ask for confirmation and only update on 'y', 'Y' or Enter
|
||||||
# Otherwise just show a reminder for how to update
|
# Otherwise just show a reminder for how to update
|
||||||
printf "[oh-my-zsh] Would you like to update? [Y/n] "
|
printf "[oh-my-zsh] Would you like to update? [Y/n] "
|
||||||
read -r -k 1 option
|
read -r option
|
||||||
[[ "$option" = $'\n' ]] || echo
|
|
||||||
case "$option" in
|
case "$option" in
|
||||||
[yY$'\n']) update_ohmyzsh ;;
|
[yY]|"") update_ohmyzsh ;;
|
||||||
[nN]) update_last_updated_file ;&
|
[nN]) update_last_updated_file ;&
|
||||||
*) echo "[oh-my-zsh] You can update manually by running \`omz update\`" ;;
|
*) echo "[oh-my-zsh] You can update manually by running \`omz update\`" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue