Skip to content

Instantly share code, notes, and snippets.

@danbruegge
Created October 18, 2012 13:09
Show Gist options
  • Save danbruegge/3911703 to your computer and use it in GitHub Desktop.
Save danbruegge/3911703 to your computer and use it in GitHub Desktop.
#!/bin/bash
dirs=".config .ssh .vim";
files=".config/geany .ssh/ .vim/ .bashrc .gitconfig .gitignore_global .vimrc .xinitrc";
echo "Creating dirs";
for dir in $dirs; do
echo "# mkdir " ./$dir;
mkdir ./$dir;
done
echo "Moving config files to .dotfiles dir.";
for file in $files; do
echo "# mv " ../$file ./$file;
mv ../$file ./$file;
echo "# ln -s" ./$file ../$file;
ln -s ./$file ../$file;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment