Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm following a video tutorial where the author (who uses textmate) can open files by using "mate". for example mate .git/config will open this config file

I'm using textwrangler however so I don't have that option. I did try edit .README once when i tried to open the README file of an application, but it opened a blank README file in textwrangler instead of the file with the text in it

so any idea how I can open this .git/config file (or any other file) using textwrangler?

I'm using Mac snow leopard

share|improve this question

3 Answers 3

You can add this function to your ~/.bash_profile or ~/.profile:

wrang() { open "$@" -a TextWrangler; }

Otherwise, you can open it by directly typing:

open /path/to/file -a TextWrangler
share|improve this answer
    
I did the following without success: wrang() { open "git/config" -a TextWrangler; } –  Michael Sep 28 '11 at 3:37
    
o.k., thanks for explaining –  Michael Sep 28 '11 at 5:08

If you put

open .git/config

it will be open in your default text editor for those kind of files.

share|improve this answer

you need to install the command line tools. Go to TextWrangler menu and select Install Command Line Tools. you will need to enter your root or admin password.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.