开发者

How to start textmate in command line

Because I didn't create textmate link when installing, so it can not find 'mate' command. who can help me to deal with this开发者_运维百科? thanks


Textmate 2:

From the menu:

Textmate -> Preferences -> Terminal: click install

For more information read the "Terminal Preferences" from Help


Even though is question is more suited for Super User, I'll bite:

Creating a symbolic link can either be done by selecting Help → Terminal Usage… from the menu, or from the shell by running something like the following:

ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate

This assumes that you have ~/bin created and in your path and that TextMate is installed in /Applications.

Therefore, I'd recommend looking inside of the Textmate.app bundle :)

(Source)


Install TextMate

If you're using bash, open .bashrc or .bash_profile; or if you're using zsh the open .zshrc and add

 export EDITOR="/usr/local/bin/mate -w"

Navigate to the Preferences -> Terminal and click install

How to start textmate in command line


TextMate will create the symbolic link you need. Launch TextMate as you would any other Cocoa app, and under the "Help" menu, select "Terminal Usage..." A simple GUI presents you with some defaults you will almost certainly use but can tweek if necessary. Click "Create Link" and you're set.


Create a symboling link to bin folder

ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate

then export all links to path variable

export PATH="$HOME/bin:$PATH" 

for more detailed information go to TextMate's official help page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜