Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created March 8, 2014 14:22
Show Gist options
  • Select an option

  • Save jordelver/9431243 to your computer and use it in GitHub Desktop.

Select an option

Save jordelver/9431243 to your computer and use it in GitHub Desktop.
#!/bin/sh
for dotfile in *; do
source="$PWD/$dotfile"
target="$HOME/.$dotfile"
if [[ "$dotfile" != "README" && "$dotfile" != "install.sh" ]]; then
ln -s "$source" "$target"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment