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 need to use a command for converting my images to pvrtc. It is located in /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool.

Right now I have to be inside that folder to be able to use the command. How can I set it up so I can run this command from anywhere?

Thanks

share|improve this question

migrated from stackoverflow.com Apr 22 '10 at 10:56

This question came from our site for professional and enthusiast programmers.

3 Answers 3

You can run it from everywhere by just typing

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool [options here]

at the commandline.

But it is easier to add the folder to your PATH. For this, edit the .bash_profile in your home directory and add the lines:

# Including developer tools
PATH="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}"
export PATH

This has the advantage that every executable in /Developer/.../usr/bin is available by just typing the name.

share|improve this answer

if you don't want to tweak your search PATH, define an alias in your profile

share|improve this answer

You can call it directly with an absolute path:

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool
share|improve this answer

Your Answer

 
discard

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