답변:
가장 쉬운 방법은 설치하는 것입니다 bash-completion
에서 사제 와 제공된 지침을 따르십시오.
출력 예 :
==> Downloading https://homebrew.bintray.com/bottles/bash-completion-1.3.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring bash-completion-1.3.mavericks.bottle.tar.gz
==> Caveats
Add the following lines to your ~/.bash_profile:
if [ -f "$(brew --prefix)/etc/bash_completion" ]; then
source "$(brew --prefix)/etc/bash_completion"
fi
The Homebrew bash completion script has been installed to:
/usr/local/etc/bash_completion.d
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/bash-completion/1.3: 188 files, 1.1M
완료되면 아래에서 자신 만의 스크립트를 만들 수 있습니다 /usr/local/etc/bash_completion.d/
.