From 856ab182aa0db2510f624e2a9c2d8bcf8e3ac33b Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 5 Jun 2021 20:28:35 +0200 Subject: [PATCH] config/yadm: add unignore list --- .config/shell/git | 4 ++-- .config/yadm/unignore | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .config/yadm/unignore diff --git a/.config/shell/git b/.config/shell/git index c58f03e..7205991 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -1,9 +1,9 @@ # Tools alias g="git" -alias bfg="java -jar $HOME/daten/applications/bfg-1.13.0.jar" -alias magit='nvim -c MagitOnly' y() { + unignore="$XDG_CONFIG_HOME/yadm/unignore" + test -r "$unignore" && cat "$unignore" | envsubst | yadm add --intent-to-add --pathspec-from-file=- test "$#" -eq 0 && yadm s || yadm "$@" } yc() { diff --git a/.config/yadm/unignore b/.config/yadm/unignore new file mode 100644 index 0000000..fcb0556 --- /dev/null +++ b/.config/yadm/unignore @@ -0,0 +1,6 @@ +$XDG_CONFIG_HOME/yadm +$XDG_CONFIG_HOME/doom +$XDG_CONFIG_HOME/git +$XDG_CONFIG_HOME/nvim +$CONFIG_SHELLS +$HOME/.local/bin/scripts