2012-02-15 7 views
0

binにシンボリックリンク(新しいアルファ版)(OSX)とシェルからTextMateのを実行することはできません、実行可能ファイルはここにある -私は、最新のTextMateはアプリケーションにインストールされている

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

私は起動することができTextMateのOKとして(私はZSHを使用)シェル内から実行できるようにするアプリケーション

のアイコンから通常、私はそうのように/ usr/local/binにシンボリックリンクを追加 -

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

しかし、私はしてみてくださいシェルからメイトを走らせる、私はゲットだ次のように -

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

おそらく私はtextmateを間違ってインストールしましたか?

+1

プログラミングに関する質問ではありません。 Superuser.comに移動する投票。がんばろう。 – shellter

答えて

1

私はそれがzshで動作しますが、TextMateは、あなたが環境設定からインストールすることができ、独自のCLIラッパー(mate)を持っていれば、私は知らない@shellterけど...

に同意する - >ターミナル。それは何年も働いたと非常に便利ですしています

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 

別の安価なオプションは、ファイルzshbashため、これと同じ起動時に実行されるものは何でも~/.*rcにエイリアスを追加することです:

alias mate='open -a textmate' 
2

あなたはTextMateファイルではなく、 'mate' CLIをシンボリックリンクする必要があります。

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

私のために働いた。ありがとう! –

関連する問題