Want to advertise here? Contact us!
by

Thank the author with a small contribution using PayPal.

0
Popularity: 29558th place
26 Views
1 Badge
Specified
Created
Modified on Feb 18, 2014
This snippet is Public
None ... yet!
SourceGithub

A simple script to sync my osx dots.

A simple script to sync my osx dots.: 
dot-sync
post this code
<iframe id="embedFrame" style="width:600px; height:300px;" src="http://www.snip2code.com/Embed/30306/A-simple-script-to-sync-my-osx-dots-"></iframe>
Click on the embed code to copy it into your clipboard Width:Height:
Leave empty to retrieve all the content First Line:Last Line:
#!/usr/bin/env bash
# A simple script to sync my osx dots.

for file in .bash_profile .imap_notifier .inputrc .muttrc .tmux.conf .urlview .vimrc
do
        cp ~/$file ~/dots/osx/$file
done

for dir in .irssi .mutt .vim
do 
        cp -LR ~/$dir ~/dots/osx/
done

rm ~/dots/osx/.irssi/config

for trash in cache certs smime isec.* mail.*
do
        rm -r ~/dots/osx/.mutt/$trash
done

If you want to be updated about similar snippets, Sign in and follow our Channels
Originally posted on https://gist.github.com/9062434