From d64d4a6a3924e144fe49b3d956320b37786a738a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Fri, 14 Jan 2022 09:54:31 +0100 Subject: Fri Jan 14 09:54:31 AM CET 2022 --- .bin/sync-public-dotfiles | 53 ----------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 .bin/sync-public-dotfiles (limited to '.bin/sync-public-dotfiles') diff --git a/.bin/sync-public-dotfiles b/.bin/sync-public-dotfiles deleted file mode 100755 index 5a6e795..0000000 --- a/.bin/sync-public-dotfiles +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -set -e - -command -v yadm git - -allowed_patterns="-e ^.bin - -e ^.config/alacritty/ - -e ^.config/calcurse/ - -e ^.config/cmus/classic.theme - -e ^.config/cmus/rc - -e ^.config/dot/term-color-* - -e ^.config/gopass/config.yml - -e ^.config/i3*/config - -e ^.config/tmux/ - -e ^.config/mimeapps.list - -e ^.config/neomutt/neomuttrc - -e ^.config/newsboat/config - -e ^.config/nvim/ - -e ^.config/qutebrowser/config.py - -e ^.config/qutebrowser/greasemonkey/ - -e ^.config/pipewire/ - -e ^.config/sway/config - -e ^.config/systemd/*.service - -e ^.config/user-dirs.dir - -e ^.config/user-dirs.locale - -e ^.gnupg/gpg-agent.conf - -e ^.public-keys/ - -e ^.kshrc - -e ^.weechat/buflist.conf - -e ^.weechat/fset.conf - -e ^.weechat/logger.conf - -e ^.weechat/weechat.conf - -e ^.xinitrc - -e ^.zshrc - " - -[ "$(yadm rev-parse --show-toplevel)" != "$(git rev-parse --show-toplevel)" ] - -# retrieve existing files -upstream_files=$(cd "${HOME}" && yadm ls-files) -local_files=$(find . -not -path "./.git*" -not -path ".") - -echo "${local_files}" | xargs rm -rf - -allowed_files=$(echo "${upstream_files}" | grep ${allowed_patterns}) -for allowed_file in ${allowed_files}; do - echo "${allowed_file}" - install -D "${HOME}/${allowed_file}" "${allowed_file}" -done - -git add . -git commit -m "$(date)" -- cgit v1.2.3