Skip to content

Instantly share code, notes, and snippets.

@erwanjegouzo
Last active March 8, 2019 20:49
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save erwanjegouzo/5903791 to your computer and use it in GitHub Desktop.
Save erwanjegouzo/5903791 to your computer and use it in GitHub Desktop.
Dropbox sync
#DROPBOX SYNCING
#==============
# bash_profile
rm -rf .bash_profile
ln -s ~/Dropbox/.bash_profile .bash_profile
# Sublime 2 Preferences
cd ~/Library/Application\ Support/Sublime\ Text\ 2/
ln -s ~/Dropbox/appdata/sublime/Installed\ Packages ./Installed\ Packages
ln -s ~/Dropbox/appdata/sublime/Packages ./Packages
ln -s ~/Dropbox/appdata/sublime/Pristine\ Packages ./Pristine\ Packages
# Iterm2 preferences
cd ~/Library/Preferences
mv com.googlecode.iterm2.plist ~/Dropbox/Library/Preferences/com.googlecode.iterm2.plist
mv com.googlecode.iterm2.plist.lockfile ~/Dropbox/Library/Preferences/com.googlecode.iterm2.plist.lockfile
ln -s ~/Dropbox/Library/Preferences/com.googlecode.iterm2.plist com.googlecode.iterm2.plist
ln -s ~/Dropbox/Library/Preferences/com.googlecode.iterm2.plist.lockfile com.googlecode.iterm2.plist.lockfile
# Terminal Preferences
mv com.apple.Terminal.plist ~/Dropbox/Library/Preferences/com.apple.Terminal.plist
mv com.apple.Terminal.plist.lockfile ~/Dropbox/Library/Preferences/com.apple.Terminal.plist.lockfile
ln -s ~/Dropbox/Library/Preferences/com.apple.Terminal.plist.lockfile com.apple.Terminal.plist.lockfile
ln -s ~/Dropbox/Library/Preferences/com.apple.Terminal.plist com.apple.Terminal.plist
# .gitconfig file
mv ~/.gitconfig ~/Dropbox/.gitconfig
ln -s ~/Dropbox/.gitconfig .gitconfig
#nano
mv .nano ~/Dropbox/.nano
ln -s ~/Dropbox/.nano .nano
mv .nanorc ~/Dropbox/.nanorc
ln -s ~/Dropbox/.nanorc .nanorc
#vim
mv .vim ~/Dropbox/.vim
ln -s ~/Dropbox/.vim/ .vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment