Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created November 15, 2011 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miyagawa/1368453 to your computer and use it in GitHub Desktop.
Save miyagawa/1368453 to your computer and use it in GitHub Desktop.
#!/bin/sh
pwd=`pwd`
for i in dot.*
do
s=`echo $i | sed -e s/^dot//`
if [ -e $HOME/$s ]
then
mv $HOME/$s $HOME/$s.bak
fi
ln -s $pwd/$i $HOME/$s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment