Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (30 sloc) 0.853 kb
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: synch IN | OUT"
else
dir=${MY_SCRIPTS//\//\\\/} #replace all matches of / with \/
case "$1" in
IN)
cp ~/.vimrc .
cp ~/.bashrc .
cp ~/.inputrc .
cp ~/.ctags .
cp ~/.mpdconf .
cp ~/.xmonad/xmonad.hs ./xmonad/
cp ~/.gitconfig ./.gitconfig
cp -r ~/.irssi/* ./irssi/
cat ~/.Xresources | sed "s/$dir/\$MY_SCRIPTS/" > ./.Xresources
;;
OUT)
cp .vimrc ~
cp .bashrc ~
cp .inputrc ~
cp .ctags ~
cp .mpdconf ~
cp xmonad/* ~/.xmonad/
cp .gitconfig ~/.gitconfig
cp -r ./irssi/* ~/.irssi/
cat .Xresources | sed "s/\$MY_SCRIPTS/$dir/" > ~/.Xresources
;;
esac
fi
Jump to Line
Something went wrong with that request. Please try again.