Sfoglia il codice sorgente

profile: fix path to git completion on mac os x

Kyle P Davis 9 anni fa
parent
commit
9c1d32e022
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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