Parcourir la source

profile: fix path to git completion on mac os x

Kyle P Davis il y a 10 ans
Parent
commit
9c1d32e022
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      .profile

+ 1 - 1
.profile

@@ -79,7 +79,7 @@ fi
 # bash completion FTW
 if [ "$OS" = "Darwin" ]; then
 	F="$BREW_PREFIX/etc/bash_completion";  ! [ -f "$F" ]  ||  . "$F"
-	F="/Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash";  ! [ -f "$F" ]  ||  . "$F"
+	F="$(xcode-select -p)/usr/share/git-core/git-completion.bash";  ! [ -f "$F" ]  ||  . "$F"
 else
 	F="/etc/bash_completion";  ! [ -f "$F" ]  ||  . "$F"
 fi