Skip to content

Instantly share code, notes, and snippets.

@edwardmp
Created June 11, 2014 11:33
Show Gist options
  • Save edwardmp/beb91742bfb62a8525c9 to your computer and use it in GitHub Desktop.
Save edwardmp/beb91742bfb62a8525c9 to your computer and use it in GitHub Desktop.
Place this line in your ~/bash_profile. Restart Terminal and type loc in a Xcode project. It will return the lines of code, excluding Pods.
alias loc='find . ! -path "./Pods/*" "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" ")" -print0 | xargs -0 wc -l'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment