X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/189288f7ab76422ebf72f8ec8d182020cc2aaf28..cda57662418981ae3b6565cd4cb6ae901a895fe1:/install.sh?ds=sidebyside 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