Skip to content

Instantly share code, notes, and snippets.

@wrick17
Forked from robbyrussell/ohmyzsh-dropbox-sync.sh
Last active July 19, 2018 08:41
Show Gist options
  • Save wrick17/e8ada999d5b17e64be5cf94c3275b9ca to your computer and use it in GitHub Desktop.
Save wrick17/e8ada999d5b17e64be5cf94c3275b9ca to your computer and use it in GitHub Desktop.
Keep your @ohmyzsh ~/.zshrc in sync via Google Drive
# Was asked how I keep my zshrc config sync'd between my computers with Google Drive
# Add a new directory in your Google Drive (or use an existing one)
mkdir -p ~/Google\ Drive/Mac
ln -s ~/Google\ Drive/Mac/.zshrc ~/.zshrc
# move existing file to Google Drive
mv ~/.zshrc ~/Google\ Drive/Mac
# symlink file back to your local directory
ln -s ~/Google\ Drive/Mac/.zshrc ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment