#!/bin/sh
-d="$HOME/.dotfiles"
-for x in .*; do ln -vwis "$d/$x" "$HOME/$x"; done
-ln -vwis "$d/i3-config" "$HOME/.config/i3/config"
-ln -vwis "$d/i3status-config" "$HOME/.config/i3status/config"
+for x in `find "$PWD" -mindepth 1 -maxdepth 1 \! \( -name '.git' -name 'install.sh' \) -name '.*'`; do
+ ln -vwis "$x" "$HOME/`basename $x`"
+done
+ln -vwis "$PWD/i3-config" "$HOME/.config/i3/config"
+ln -vwis "$PWD/i3status-config" "$HOME/.config/i3status/config"
+
+#fix permissions
+chmod go= .zshenv .Xresources