cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.78k stars 177 forks source link

How to remove all existing entries in McFly's database? #200

Closed MahdiNazemi closed 2 years ago

MahdiNazemi commented 2 years ago

Is it possible to remove all entries shown in McFly at once?

Here is what I have tried so far:

  1. Look at the command line options to see if the database can be cleared -> no such option exists
  2. rm $MCFLY_HISTORY -> does not clear entries
  3. Uninstall McFly and reinstall -> the history is not removed upon uninstallation (IMHO, this is not good in general)
  4. Remove entries one at a time using F2 -> works if you have recently installed McFly and don't have too many entries to remove
MahdiNazemi commented 2 years ago

It looks like the database is under ~/.mcfly.