From 361e90625044375ba87836685430a2a174f9afdb Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Tue, 31 Aug 2021 11:15:08 +0200 Subject: [PATCH] Compute GIT_REPOS with find --- dotfiles/shell/aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index faa9fcd..4b28644 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -66,7 +66,7 @@ clitip() { xmlstarlet unesc | fmt -80 | iconv -t US } -GIT_REPOS=(~/.password-store ~/setup-cockpit ~/keepass ~/tssr ~/lessons/* ~/personal-scripts ~/root-me ~/src/*) +GIT_REPOS=($(dirname $(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*'))) cockpit() { # enable pass-like commands (ex: cockpit git push) local start_dir="$PWD"