#!/bin/sh -e

~/.vim/bundle/YouCompleteMe/install.py --clang-completer

#!/bin/sh -e

cmd="$HOME/.vim/bundle/YouCompleteMe/install.py --clang-completer"

if [ $( uname -s ) = Darwin ]; then
    $cmd
else
    # Allow ldconfig to find python library
    PATH=/sbin:$PATH $cmd --system-libclang
fi

--- 
+++ 
@@ -1,3 +1,10 @@
 #!/bin/sh -e
 
-~/.vim/bundle/YouCompleteMe/install.py --clang-completer
+cmd="$HOME/.vim/bundle/YouCompleteMe/install.py --clang-completer"
+
+if [ $( uname -s ) = Darwin ]; then
+    $cmd
+else
+    # Allow ldconfig to find python library
+    PATH=/sbin:$PATH $cmd --system-libclang
+fi
Use bundled clang on Linux as well
