bash history

main
Nguyen Tran Hau 2020-07-08 17:59:30 +07:00
parent 0f37723215
commit a474e6ac86
1 changed files with 4 additions and 0 deletions

View File

@ -12,8 +12,12 @@ In macOS, Bash read `~/.bash_profile` not `~/.bashrc`, so edit `~/.bash_profile`
Add to `~/.bashrc`:
```bash
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTCONTROL=ignoreboth:erasedups
export HISTIGNORE="cd:ls:la:ll:pwd:exit"
shopt -s histappend
```
Shebang: