From 6ddbdf9712aaabc51915951beee38dc8249aa244 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 15 Apr 2016 10:16:16 +0200 Subject: setup.sh: fix --- setup.sh | 63 ++++++++++++++++----------------------------------------------- 1 file changed, 16 insertions(+), 47 deletions(-) diff --git a/setup.sh b/setup.sh index a943394..c9b8034 100755 --- a/setup.sh +++ b/setup.sh @@ -1,57 +1,26 @@ #!/bin/zsh -x -rm $HOME/.clamz \ - $HOME/.config \ - $HOME/.newsbeuter \ - $HOME/.moc \ - $HOME/.mozilla \ - $HOME/.ncftp \ - $HOME/.urxvt +SPECIAL=(.clamz \ + .config \ + .newsbeuter \ + .moc \ + .mozilla \ + .ncftp \ + .urxvt \ + .vim + ) -mkdir -p $HOME/.clamz \ - $HOME/.config \ - $HOME/.newsbeuter \ - $HOME/.moc \ - $HOME/.mozilla/pks.default/searchplugins \ - $HOME/.ncftp \ - $HOME/.urxvt - -PKG=(\ - clamz \ - feh \ - git \ - gtk \ - htop \ - imwheel \ - input \ - khal \ - moc \ - mozilla \ - mpv \ - multitail \ - mutt \ - ncftp \ - newsbeuter \ - npm \ - ratpoison \ - rtorrent \ - subversion \ - tex \ - theano \ - tmux \ - urxvt \ - vim \ - X \ - xdg \ - zsh \ -) +for i in SPECIAL; do + rm $HOME/$i + mkdir -p $HOME/$i +done -for i in $PKG; do +for i in $(ls -1 | grep -v -P "(setup.sh|additional.files)"); do stow -t $HOME $i done -git submodule foreach init -git submodule update +git submodule foreach git submodule init +git submodule foreach git submodule update cd $HOME/.urxvt; ln -s urxvt-perls/clipboard .; ln -s urxvt-perls/keyboard-select .; ln -s urxvt-tabbedex/tabbedex .; ln -s urxvt-perls/url-select . -- cgit v1.2.3