LoginSignup
1
2

More than 3 years have passed since last update.

iCloudで不要なフォルダを同期させないための設定を行うBashスクリプト

Posted at

主に個人用。

#!/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になる。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2