Instead of deleting hardcoded commands in filterHistory, sort commands by usage and let the user select in fzf. If fzf is not installed, show the most used ones and let the user select manually. Keep the first occurence in the history for stuff like autosuggestions.