Skip to content

Instantly share code, notes, and snippets.

@lucasdavila
Forked from erwanjegouzo/gist:5903791
Last active March 20, 2017 11:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasdavila/6299271 to your computer and use it in GitHub Desktop.
Save lucasdavila/6299271 to your computer and use it in GitHub Desktop.
Dropbox preferences sync
# bash_profile
mv ~/.bash_profile ~/Dropbox/.bash_profile
ln -s ~/Dropbox/.bash_profile ~/.bash_profile
# Sublime 2 Preferences
mkdir -p ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/
cd ~/Library/Application\ Support/Sublime\ Text\ 2/
mv ./Installed\ Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Installed\ Packages
mv ./Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Packages
mv ./Pristine\ Packages ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Pristine\ Packages
ln -s ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Installed\ Packages ./Installed\ Packages
ln -s ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/Packages ./Packages
ln -s ~/Dropbox/Library/Application\ Support/Sublime\ Text\ 2/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
mv ~/.viminfo ~/Dropbox/.viminfo
ln -s ~/Dropbox/.viminfo ~/.viminfo
mv ~/.vimrc ~/Dropbox/.vimrc
ln -s ~/Dropbox/.vimrc ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment