Skip to content

Instantly share code, notes, and snippets.

@ijaaz
Last active August 29, 2015 14:00
Show Gist options
  • Save ijaaz/11278099 to your computer and use it in GitHub Desktop.
Save ijaaz/11278099 to your computer and use it in GitHub Desktop.
#!/bin/bash
find ~/.dotfiles/ -maxdepth 1 -name '.*' ! -iname ".*.sw*" ! -path ~/.dotfiles/ ! -path ~/.dotfiles/.git ! -path ~/.dotfiles/dotfiles_install -printf "%f:%p\n" | while IFS=":" read FNAME FPATH
do
ln -svf "$FPATH" $HOME/$FNAME
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment