Monday, April 8, 2013

Open a File with the Xcode Editor from the Command Line

Add the following alias to your ~/.bashrc (or ~/.bash_profile)


alias xcode='open -a /Applications/Xcode.app'


Run following to make the new alias available in the current shell/terminal window.


$ .  ~/.bashrc


Use it to open a file in iTerm


$ xcode readme.txt

References

http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode_User_Guide/000-About_Xcode/about.html



Sponsor Ads(Please visit one if you liked this article. Thanks!)

3 comments: