| ▲ | ta8903 9 hours ago | |
Something that should be mentioned is starting a command with a space doesn't add it to your history in most shells, really useful for one-off commands that you don't want cluttering your history. Also, increase your `$HISTSIZE` to more than you think you would need, there have been cases where it helped me find some obscure command I ran like 3 years before. | ||
| ▲ | account42 5 hours ago | parent [-] | |
HISTCONTROL=erasedups can also help keeping more obscure commands in your history, at the expense of context around commands. | ||