add "limit" keyword argument to history_completer, defaulting to 50