Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It does for me

  >  echo test
  test
  > history
  ...
  6730   echo test
  6731  history


Set this in your .bashrc

  HISTCONTROL=ignorespace
Or even better, though unrelated to this topic... Also get it to ignore duplicates that come next to each other.

  HISTCONTROL=ignoredups:ignorespace




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: