.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 <alan.orth@gmail.com>
This commit is contained in:
parent
19a886ed14
commit
cc08a87d6a
4
.bashrc
4
.bashrc
@ -8,6 +8,10 @@
|
|||||||
# OS-specific things
|
# OS-specific things
|
||||||
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
|
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
|
||||||
PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH
|
PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH
|
||||||
|
|
||||||
|
if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
||||||
|
. $(brew --prefix)/etc/bash_completion
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
alias less='less -R' # preserves colors in `less`
|
alias less='less -R' # preserves colors in `less`
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user