From d5cca2a9927d898717f09c12ed95fbbefe43a211 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Fri, 10 Aug 2012 15:36:54 +0200 Subject: [PATCH] modularisation completion --- bash/completion | 6 ++++++ bash/rc | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 bash/completion diff --git a/bash/completion b/bash/completion new file mode 100644 index 0000000..4e0196d --- /dev/null +++ b/bash/completion @@ -0,0 +1,6 @@ +# homebrew bash autocompletion +if [ -f `brew --prefix`/etc/bash_completion ]; then + source `brew --prefix`/etc/bash_completion +fi + +# vim: ft=sh diff --git a/bash/rc b/bash/rc index e7d6b1c..38cd69c 100644 --- a/bash/rc +++ b/bash/rc @@ -2,6 +2,7 @@ source $DOTFILES_BASH_DIR/prompt source $DOTFILES_BASH_DIR/history +source $DOTFILES_BASH_DIR/completion # easy on spelling mistakes shopt -s cdspell @@ -9,9 +10,5 @@ shopt -s cdspell # turn off distractive bells set bell-style none -# homebrew bash autocompletion -if [ -f `brew --prefix`/etc/bash_completion ]; then - source `brew --prefix`/etc/bash_completion -fi # vim: ft=sh