larkery / zsh-histdb

A slightly better history for zsh
MIT License
1.27k stars 75 forks source link

Add -y flag to bypass --forget confirmation prompt #100

Closed henrebotha closed 3 years ago

henrebotha commented 3 years ago

This PR adds a flag -y that is used in conjunction with --forget. When the flag is passed, the script will not prompt for confirmation before forgetting the matching commands.

It also updates the usage example as it was omitting several arguments.

henrebotha commented 3 years ago

@larkery

larkery commented 3 years ago

This looks fine thanks - could you change it to --yes or --force though? I'm not sure why I put any short-form args in there in the first place.

Cheers

henrebotha commented 3 years ago

Sure! I'll ping you when it's done.

henrebotha commented 3 years ago

And done! @larkery