From 7f0acd88e49388807add61d6ee8118323a0b22f4 Mon Sep 17 00:00:00 2001 From: ds6 Date: Fri, 24 Nov 2017 13:00:31 -0600 Subject: [PATCH] install.sh --- install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.48.1