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"

 

 
posted @ 2016-03-18 15:09  Ficow  阅读(262)  评论(0编辑  收藏  举报