Skip to content

Instantly share code, notes, and snippets.

@yuchan
Created October 20, 2011 02:27
Show Gist options
  • Save yuchan/1300263 to your computer and use it in GitHub Desktop.
Save yuchan/1300263 to your computer and use it in GitHub Desktop.
/*
git clone git://gist.github.com/1300263.git
./commondotfiles
*/
#! /bin/sh
INSTALLDIR=$HOME
for FILE in `find $PWD/dotfiles/ -name ".*" | grep -v "bak"` ; do
if [ `file $FILE` eq 'directory' ]; then
cp -r $FILE $INSTALLDIR/
else
cp $FILE $INSTALLDIR/
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment