Ask Your Question

Revision history [back]

If you type in command with space on the beginning it won't be saved in your HISTFILE. But I doubt you're doing that.

Having bash-completion package installed should provide you with ssh command completion with hosts from .ssh/known_hosts. Perhaps that can be good substitute.

Regarding shell history itself please specify which shell you're using as well as the terminal emulator and other relevant data (edit your question) and I'll try to reproduce the issue and update this answer.