Fix the conflict between grails bundle for Textmate and bash-completion

  Yesterday,I upgraded my mac os port from 1.8 to 1.9,and the bash-completion upgraded also.
 
As the result is my grails bundle can not work again,especially execute the commands,and there is nothing to tip
 
From analysing the the grails bundle codes,I find out the reason: /opt/local/etc/bash_completion should not be executed,so the solution is to check the Texmate env variable,see the code:
if [[ -f /opt/local/etc/bash_completion && -z $TM_BASH_INIT ]]; then
    . /opt/local/etc/bash_completion
fi

你可能感兴趣的:(OS,F#,bash,grails)