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




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

Search: