Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make bash completions work with Ubuntu 13.04 #86

Merged
merged 1 commit into from

3 participants

@mbachry

In new Ubuntu the path to main git completion script seems to be moved to /usr/share/bash-completion/completions/git.

@ndbroadbent
Owner

Awesome, thanks!

@ndbroadbent ndbroadbent merged commit 8e45f61 into ndbroadbent:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 18, 2013
  1. @mbachry
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/git/aliases.sh
View
2  lib/git/aliases.sh
@@ -143,6 +143,8 @@ fi
if [ $shell = "bash" ]; then
# Fix to preload Arch bash completion for git
[[ -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
# Git repo management & aliases.
Something went wrong with that request. Please try again.