iCloudで不要なフォルダを同期させないための設定を行うBashスクリプト
572 ワード
主に個人用。
#!/bin/bash
DIR=${1///}
mv $DIR $DIR.nosync
ln -s $DIR.nosync $DIR
たとえば node_modules、vendor、_siteなど。
/usr/local/bin/nsync
とかに設置しておけば、
nsync node_modueles
で node_modulesがnode_modules.nosyncになって、そのリンクがnode_modulesになる。
Author And Source
この問題について(iCloudで不要なフォルダを同期させないための設定を行うBashスクリプト), 我々は、より多くの情報をここで見つけました https://qiita.com/goofmint/items/ed23e7ff99e42eba003e著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .