Skip to content

Instantly share code, notes, and snippets.

@valdemarua
Forked from robbyrussell/ohmyzsh-dropbox-sync.sh
Last active January 5, 2022 04:55
Show Gist options
  • Save valdemarua/e386e028e6c5e37bda9e to your computer and use it in GitHub Desktop.
Save valdemarua/e386e028e6c5e37bda9e to your computer and use it in GitHub Desktop.
Keep your @ohmyzsh ~/.zshrc in sync via dropbox
#
# RUN JUST ONCE
#
# Add a new directory in your Dropbox (or use an existing one)
mkdir -p ~/Dropbox/dotfiles
# move existing file to Dropbox
mv ~/.zshrc ~/Dropbox/dotfiles/zshrc
# oh-my-zsh
mkdir -p ~/Dropbox/dorfiles/oh-my-zsh
mv ~/.oh-my-zsh ~/Dropbox/dotfiles/oh-my-zsh
# Brewfile
mv ~/Brewfile ~/Dropbox/dotfiles/Brewfile
# gemrc
mv ~/.gemrc ~/Dropbox/dotfiles/gemrc
#
# RUN ON EACH CLIENT
#
# 1. Install Dropbox
# 2. Install Homebrew
# 3. Run the following commands:
# symlink file back to your local directory
ln -s ~/Dropbox/dotfiles/oh-my-zsh ~/.oh-my-zsh
ln -s ~/Dropbox/dotfiles/zshrc ~/.zshrc
ln -s ~/Dropbox/dotfiles/z ~/.z-repository
ln -s ~/Dropbox/dotfiles/gemrc ~/.gemrc
ln -s ~/Dropbox/dotfiles/Brewfile ~/Brewfile
# Vim
# 1. Install vim-plug: https://github.com/junegunn/vim-plug#unix
# curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#
# 2. Link .vimrc and other folders and files to home folder
ln -s ~/Dropbox/dotfiles/vim/vimrc ~/.vimrc
ln -s ~/Dropbox/dotfiles/vim/UltiSnips ~/.vim/UltiSnips
# 3. Run PlugInstall in vim console
# 4. Run brew update && brew bundle
# 5. Change shell to zsh
chsh -s /bin/zsh
# 6. Install font Menlo from ~/Dropbox/dotfiles/fonts
# 7. Change font to Menlo in iTerm settings
# 8. Run iTerm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment