Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Open xcode from terminal
function xc {
bold=$(tput bold)
normal=$(tput sgr0)
xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
if [[ `echo -n $xcode_proj | wc -m` == 0 ]]
echo "No xcworkspace/xcodeproj file found in the current directory."
echo "Opening ${bold}\033[1;32m$xcode_proj"
open "$xcode_proj"

This comment has been minimized.

Copy link
Owner Author

@CavalcanteLeo CavalcanteLeo commented Nov 11, 2016

captura de tela 2016-11-11 as 15 27 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment