सबसे आसान तरीका होमब्रे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/
।