Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move auto-complete code over to available -> enabled style

This continues the move toward the ability to turn things off with
everything turned on by default.
  • Loading branch information...
commit e115b4c5af234558e062a1ccd9c0db8d91402a60 1 parent 972d58f
Travis Swicegood tswicegood authored
8 bash_it.sh
View
@@ -17,8 +17,14 @@ do
source $config_file
done
+# TODO: reduce the repetition here by combining these three into a loop
# Tab Completion
-COMPLETION="${BASH}/completion/*.bash"
+if [ ! -d "${BASH}/completion/enabled" ]
+then
+ mkdir "${BASH}/completion/enabled"
+ ln -s ${BASH}/completion/available/* "${BASH}/completion/enabled"
+fi
+COMPLETION="${BASH}/completion/enabled/*.bash"
for config_file in $COMPLETION
do
source $config_file
0  completion/brew.completion.bash → completion/available/brew.completion.bash
View
File renamed without changes
0  completion/git.completion.bash → completion/available/git.completion.bash
View
File renamed without changes
0  completion/git_flow.completion.bash → completion/available/git_flow.completion.bash
View
File renamed without changes
0  completion/rake.completion.bash → completion/available/rake.completion.bash
View
File renamed without changes
0  completion/ssh.completion.bash → completion/available/ssh.completion.bash
View
File renamed without changes
0  completion/todo.completion.bash → completion/available/todo.completion.bash
View
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.