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

用户在将macOS从1.8升级到1.9后遇到了Grails包无法正常工作的问题,特别是命令执行部分没有提示反馈。通过分析Grails包的代码,发现问题是由于执行了/opt/local/etc/bash_completion文件导致。解决方案是检查Texmate环境变量,并根据提供的代码进行调整。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:
[ -f /opt/local/etc/bash_completion && -z $TM_BASH_INIT ]; then
. /opt/local/etc/bash_completion
fi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值