2012-02-15 37 views
0

我已經安裝在應用的最新TextMate的鏈接(新的alpha版本)運行TextMate的,可執行的是在這裏 -無法從外殼採用象徵性的在倉(OSX)

/Applications/TextMate.app/Contents/MacOS/TextMate 

我可以發動TextMate的確定爲從應用

圖標正常的情況下能夠從外殼(我使用ZSH)中運行,我說在/ usr/local/bin目錄,像這樣一個符號鏈接 -

sudo ln -s /Applications/TextMate.app/Contents/MacOS/TextMate /usr/local/bin/mate 

但是我試着從殼裏跑夥伴,我是ge以下內容 -

mate[22695:8403] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting 

也許我安裝了textmate錯誤?

+1

不是一個編程問題。投票轉移到Superuser.com。祝你好運。 – shellter 2012-02-15 22:28:02

回答

1

我同意@shellter但是......

我不知道,如果它在zsh但TextMate中有自己的CLI包裝(mate),您可以從安裝首選項 - >終端。它一直運作良好多年,非常方便:

Usage: mate [-awl<number>rdnhv] [file ...] 
Options: 
-a, --async   Do not wait for file to be closed by TextMate. 
-w, --wait    Wait for file to be closed by TextMate. 
-l, --line <number> Place caret on line <number> after loading file. 
-r, --recent   Add file to Open Recent menu. 
-d, --change-dir  Change TextMates working directory to that of the file. 
-n, --no-reactivation After edit with -w, do not re-activate the calling app. 
-h, --help    Show this information. 
-v, --version   Print version information. 

If multiple files are given, a project is created consisting of these 
files, -a is then default and -w will be ignored (e.g. "mate *.tex"). 

By default mate will not wait for the file to be closed 
except when used as filter: 
ls *.tex|mate|sh  -w implied 
mate -|cat -n   -w implied (read from stdin) 

An exception is made if the command is started as something which ends 
with "_wait". So to have a command with --wait as default, you can 
create a symbolic link like this: 
ln -s mate mate_wait 

另一種便宜的選擇將添加一個別名到任何~/.*rc文件zsh執行在類似這樣的啓動爲bash

alias mate='open -a textmate' 
2

你需要符號鏈接'mate'CLI,而不是TextMate文件。

sudo ln -s /Applications/TextMate.app/Contents/Resources/mate /usr/local/bin/mate 
+0

爲我工作。謝謝! – 2017-03-08 19:43:14