Skip to content

Instantly share code, notes, and snippets.

@ojiry
Created June 19, 2012 12:30
Show Gist options
  • Save ojiry/2953866 to your computer and use it in GitHub Desktop.
Save ojiry/2953866 to your computer and use it in GitHub Desktop.
#! /bin/sh
DOT_FILES=( .gemrc .gitconfig .railsrc .tmux.conf .vimrc .zshrc )
DIR=$(cd $(dirname $0);pwd)
for file in ${DOT_FILES[@]}
do
if [ -a $HOME/$file ]; then
echo "Already file exists: $file"
else
ln -s $DIR/$file $HOME/$file
echo "Created a symbolic link: $file"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment