Xcode:利用软链接将 code snippets、断点、templates 和主题备份到云存储中

ohyeahhhh 2019-11-04

Xcode:利用软链接将 code snippets、断点、templates 和主题备份到云存储中

#!/bin/bash

Backup_Path="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Xcode"
Xcode_config_path="$HOME/Library/Developer/Xcode"

echo "Restoring code snippets..."
ln -s "$Backup_Path/UserData/CodeSnippets" "$Xcode_config_path/UserData"
echo "Restoring user breakpoints..."
ln -s "$Backup_Path/UserData/xcdebugger" "$Xcode_config_path/UserData"
echo "Restoring font and color themes..."
ln -s "$Backup_Path/UserData/FontAndColorThemes" "$Xcode_config_path/UserData"
echo "Restoring templates..."
ln -s "$Backup_Path/Templates" "$Xcode_config_path"
echo "All set!"

也可以用 restore_xcode_configuration

修改 Backup_Path 和 Xcode_config_path 为对应的路径即可。

相关推荐

APCDE / 0评论 2019-12-01
野生的世界 / 0评论 2015-10-29