Moved git index tab completion into bash conditional

This commit is contained in:
Nathan Broadbent
2012-08-13 03:40:21 +12:00
parent b4655662cd
commit 30ebeb281e

View File

@@ -128,12 +128,12 @@ fi
# Tab completion # Tab completion
if [ $shell = "bash" ]; then if [ $shell = "bash" ]; then
complete -o default -o nospace -F _git $git_alias complete -o default -o nospace -F _git $git_alias
fi
# Git repo management & aliases. # Git repo management & aliases.
# If you know how to rewrite _git_index_tab_completion() for zsh, please send me a pull request! # If you know how to rewrite _git_index_tab_completion() for zsh, please send me a pull request!
complete -o nospace -o filenames -F _git_index_tab_completion git_index complete -o nospace -o filenames -F _git_index_tab_completion git_index
complete -o nospace -o filenames -F _git_index_tab_completion $git_index_alias complete -o nospace -o filenames -F _git_index_tab_completion $git_index_alias
fi
# Keyboard Bindings # Keyboard Bindings