Skip to content

yxjxx/dotfiles

Repository files navigation

dotfiles backup on github

Here is some config file of my Linux Mint16 and Mac OS X development.


###Backup

In computer A ,move your dotfiles to ~/Dropbox/dotfiles/ ,then soft link these files back to their origin places.

Like this...

#!/bin/bash
mv ~/.vimrc ~/Dropbox/dotfiles/.vimrc
mv ~/.zshrc ~/Dropbox/dotfiles/.zshrc
ln -s ~/Dropbox/dotfiles/.vimrc ~/.vimrc
ln -s ~/Dropbox/dotfiles/.zshrc ~/.zshrc

###push them to github

cd ~/Dropbox/dotfiles/
git init 
git add <files>
git commit
git push origin master
...


###Restore

In computer B ,you need to delete those original files generated by the system and then soft link your files in dropbox to the right place.

Like this...

#!/bin/bash
rm -rf ~/.vimrc 
rm -rf ~/.zshrc
rm -rf ~/.bashrc
rm -rf ~/.gitconfig
rm -rf ~/.tmux.conf
rm -rf ~/.gitignore
rm -rf ~/.gitignore_global
ln -s ~/Dropbox/dotfiles/.vimrc ~/.vimrc
ln -s ~/Dropbox/dotfiles/.zshrc ~/.zshrc
ln -s ~/Dropbox/dotfiles/.bashrc ~/.bashrc
ln -s ~/Dropbox/dotfiles/.gitconfig ~/.gitconfig
ln -s ~/Dropbox/dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/Dropbox/dotfiles/.gitignore ~/.gitignore
ln -s ~/Dropbox/dotfiles/.gitignore_global ~/.gitignore_global

###Sync sublime packages and settings using Package Sync

About

yxjxx's dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published