How to open Xcode from terminal?


I noticed my current bash file has export PATH=$PATH:/Applications/MAMP/library/bin which i put there to set up terminal access to mamp. I've been trying to compile -a MyApp a.xcodeproj & open a.xcodeproj but I'm not sure which one to use and neither works. I also added this to the bash file after suggestion $ alias xcode="open -a Xcode" It still doesn't work. I need a path/terminal expert to help me configure a way to run Xcode from the terminal because I'm trying to use cocoa pods.


Answers:


xed does this and ships with xcode. Run

xed .

man xed for more info.