This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd to the folder containing an Xcode project dragged from an Xcode window's proxy icon. If no file is provided, cd to the folder containing the current Xcode project | |
function xc | |
{ | |
xcodeIsRunning=false | |
if [[ `osascript -e 'tell app "System Events" to count processes whose name is "Xcode"'` == 1 ]]; then | |
xcodeIsRunning=true | |
fi | |
if [[ $xcodeIsRunning == false ]]; then | |
echo "Xcode is not open. I don’t know what you want from me." |