nosync

Renames a directory with .nosync suffix and symlinks original path to prevent Google Drive sync.

9|1|Updated Jul 19, 2022
One-click install
npx skills add https://github.com/benthamite/dotfiles --skill nosync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nosync
Source: https://github.com/benthamite/dotfiles/tree/main/claude/skills/nosync
Command: npx skills add https://github.com/benthamite/dotfiles --skill nosync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents Google Drive from syncing specific directories by applying the .nosync trick, which is useful for directories that contain problematic files or are not meant for cloud synchronization.

Core Features & Use Cases

  • Renames a directory to include a .nosync suffix.
  • Creates a symbolic link at the original path to maintain transparency for tooling.
  • Optionally updates .gitignore to reflect the change.
  • Handles directories that Google Drive might complain about (e.g., node_modules).

Quick Start

Apply the .nosync fix to the directory named 'my_project/node_modules'.

Frequently Asked Questions about nosync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop Google Drive from syncing a specific directory?

To stop Google Drive from syncing a directory, this skill renames the target folder with a '.nosync' suffix and creates a relative symbolic link at the original path to maintain accessibility for your development tools.

What is the .nosync trick for Google Drive directory management?

The .nosync trick is a directory management method that appends '.nosync' to a folder name, preventing Google Drive synchronization while a relative symbolic link preserves the original path for continuous tooling access.

How do I prevent Google Drive from syncing node_modules without breaking my project?

You can prevent Google Drive from syncing node_modules by applying the .nosync trick, which renames the directory and uses a symbolic link at the original path so your development tools continue functioning without cloud synchronization.

Can I automatically update .gitignore when excluding a directory from Google Drive?

Yes, you can automatically update .gitignore when excluding a directory from Google Drive, as this skill optionally appends the necessary changes to the .gitignore file and commits the updates.

Does this directory exclusion method work for folders outside of Google Drive?

No, this directory exclusion method validates that the target folder is located within Google Drive, meaning it specifically checks and requires the target directory to be inside the Google Drive synchronization path.

What happens if a directory with the .nosync suffix already exists?

If a directory with the .nosync suffix already exists, the process stops, as the skill validates the absence of a pre-existing .nosync version before renaming the target directory and creating the symbolic link.