Hacker News new | past | comments | ask | show | jobs | submit login

    $ echo $HISTCONTROL
    ignoreboth
From ‘man bash’:

HISTCONTROL

A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to not be saved.




Bash - the gift that keeps giving :-) TIL!




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

Search: