From: ds6 Date: Fri, 24 Nov 2017 19:00:31 +0000 (-0600) Subject: install.sh X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/7f0acd88e49388807add61d6ee8118323a0b22f4 install.sh --- diff --git a/install.sh b/install.sh index 2302890..d1f2ad7 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,9 @@ #!/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