homebrew bash

main
Tran Hau 2020-05-22 11:25:46 +07:00
parent 2ac966862e
commit a7ec05d0b9
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Bash completion:
| ------------ | ----------------- |
| Archlinux | `bash-completion` |
| Ubuntu | `bash-completion` |
| Homebrew | `bash-completion` |
Add to `~/.bashrc`:
@ -15,6 +16,11 @@ Add to `~/.bashrc`:
export HISTCONTROL=ignoreboth:erasedups
export HISTIGNORE="cd:cd *:ls:ls *:pwd:exit"
# Archlinux, Ubuntu
[[ -f /usr/share/bash-completion/bash_completion ]] && \
source /usr/share/bash-completion/bash_completion
# Homebrew
[ -f /usr/local/etc/bash_completion ] && \
source /usr/local/etc/bash_completion
```