From cc08a87d6a0fdd04e329000ee49c8b072c9060d9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 8 Oct 2014 20:47:19 +0300 Subject: [PATCH] .bashrc: Add bash_completion for Mac OS X Will allow you to tab complete stuff like ssh remote paths etc once you install it via brew: brew install bash-completion Signed-off-by: Alan Orth --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index a210f85..f121d53 100644 --- a/.bashrc +++ b/.bashrc @@ -8,6 +8,10 @@ # OS-specific things if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH + + if [ -f $(brew --prefix)/etc/bash_completion ]; then + . $(brew --prefix)/etc/bash_completion + fi else alias less='less -R' # preserves colors in `less` fi