Inspired by ortas post about it I came up with this one-liner:
alias openx='open *.xcworkspace 2>/dev/null || open *.xcodeproj 2>/dev/null || echo "nagnagnag"'
Inspired by ortas post about it I came up with this one-liner:
alias openx='open *.xcworkspace 2>/dev/null || open *.xcodeproj 2>/dev/null || echo "nagnagnag"'