Last active
November 10, 2019 02:32
-
-
Save makeitaboldmove/2147a939a87312420eca82163d8b063d to your computer and use it in GitHub Desktop.
Create Google Drive symlinks for fresh macOS install or new user.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do NOT run this script if you have existing files and folders! | |
# This is ONLY for new users or fresh macOS installs! | |
# Replace username with your username | |
# Use "\" to escape spaces in usernames | |
rm -rf /Users/username/Documents && | |
rm -rf /Users/username/Downloads && | |
rm -rf /Users/username/Pictures/ && | |
rm -rf /Users/username/Movies && | |
rm -rf /Users/username/Music && | |
rm -rf /Users/username/Videos | |
# This assumes your Google Drive folder structure is exact | |
# Make changes to the items below before running the script | |
# Use "\" to escape spaces in folder names | |
ln -s /Users/username/Google\ Drive/Media/Documents /Users/username && | |
ln -s /Users/username/Google\ Drive/Media/Downloads /Users/username && | |
ln -s /Users/username/Google\ Drive/Media/Pictures /Users/username && | |
ln -s /Users/username/Google\ Drive/Media/Audio/Music /Users/username && | |
ln -s /Users/username/Google\ Drive/Media/Videos /Users/username && | |
ln -s /Users/username/Google\ Drive/Media/Videos/Movies /Users/username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment