我在OS雪豹上尝试了几种解决方案,以使TextMate2识别mate filename,但似乎mate命令没有“mate”可以调用:
$cd /Applications/TextMate.app/Contents/SharedSupport/
$ ls -al
total 0
drwxr-xr-x 3 admin staff 102 9 Jul 2012 .
drwxr-xr-x 9 admin staff 306 9 Jul 2012 ..
drwxr-xr-x 3 admin staff 102 9 Jul 2012 Bundles
$ which mate
/Users/admin/bin/mate但是mate脚本(~/bin/mate)失败,因为‘Content/Resources/mate’不存在:
#!/bin/sh
exec "${TM_MATE:-$("$TM_SUPPORT_PATH/bin/find_app" com.macromates.TextMate.preview)/Contents/Resources/mate}" "$@"...so mate myfile给出:
/Users/admin/bin/mate: line 2: /bin/find_app: No such file or directory
/Users/admin/bin/mate: line 2: /Contents/Resources/mate: No such file or directory
/Users/admin/bin/mate: line 2: exec: /Contents/Resources/mate: cannot execute: No such file or directory在大约两个小时后,我找不到解决这个问题的办法,所以如果有人遇到同样的问题,我会感谢你的帮助。
发布于 2014-01-08 13:55:05
我认为问题在于您已经安装了TextMate,但还没有通过终端启用shell支持。下面是几次点击就可以解决这个问题。
export EDITOR="/usr/local/bin/mate -w"https://stackoverflow.com/questions/20936481
复制相似问题