1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-03-06 10:05:24 +08:00
Nick Glenn 8908e6d720
fix(history): fix logic error in prompt for history -c (#12500)
Logic error in `history -c` when prompting for confirmation caused history
to be deleted when typing anything but explicitly `n`, `N`, or sending `\n`.
New logic prevents deletion by pressing wrong key and only deletes
history when sending `y` or `Y`.

Co-authored-by: Sargates <nicholas.g.glenn@gmail.com>
2024-06-13 09:26:17 +02:00
..
2022-01-03 13:50:50 +01:00