iOS 从git拷贝Xcode的snippets
do following things in terminal
1. check out the project using: git clone gitAddress
2. cd the project path
3. create a file ./setup_snippets.sh,and execute it。
content of ./setup_snippets.sh :
#! /bin/bash
mv ~/Library/Developer/Xcode/UserData/CodeSnippets ~/Library/Developer/Xcode/UserData/CodeSnippets.backup
# rm ~/Library/Developer/Xcode/UserData/CodeSnippets
SRC_HOME=`pwd`
ln -s ${SRC_HOME}/CodeSnippets ~/Library/Developer/Xcode/UserData/CodeSnippets
echo "done"
Stay hungry,stay foolish.