-
批量刪除.svn文件
先定位到項(xiàng)目目錄下(在終端先輸入cd 然后把文件夾拖進(jìn)終端)
find . -type d -name ".svn"|xargs rm -rf
-
安裝Alcatraz
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
-
使Xcode重新出現(xiàn)load bundle提示框(用于不小心點(diǎn)擊了skip bundle的情況)
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-X.XX
末尾X.XX為版本號
-
更新Xcode后重新加載以前安裝的插件
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
-
安裝homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
統(tǒng)計(jì)整個(gè)工程代碼行數(shù)
先cd到代碼目錄下(注意不是工程根目錄 到根目錄會把pods里面的第三方代碼也統(tǒng)計(jì)進(jìn)去)
find . -name ".m" -or -name ".h" -or -name ".xib" -or -name ".c" |xargs wc -l