Make bash completions work with Ubuntu 13.04

This commit is contained in:
Marcin Bachry
2013-04-18 19:44:00 +02:00
parent 6fec96ee35
commit 123c17fa3b

View File

@@ -143,6 +143,8 @@ fi
if [ $shell = "bash" ]; then if [ $shell = "bash" ]; then
# Fix to preload Arch bash completion for git # Fix to preload Arch bash completion for git
[[ -s "/usr/share/git/completion/git-completion.bash" ]] && source "/usr/share/git/completion/git-completion.bash" [[ -s "/usr/share/git/completion/git-completion.bash" ]] && source "/usr/share/git/completion/git-completion.bash"
# new path in Ubuntu 13.04
[[ -s "/usr/share/bash-completion/completions/git" ]] && source "/usr/share/bash-completion/completions/git"
complete -o default -o nospace -F _git $git_alias complete -o default -o nospace -F _git $git_alias
# Git repo management & aliases. # Git repo management & aliases.