config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 7fee1b99775003bbad5c665638962a80ec55cde7
parent 92ebec0da597c1baad21fc15ccb0e231a14b7cfe
Author: dwrz <dwrz@dwrz.net>
Date:   Thu, 16 Nov 2023 17:24:31 +0000

Update uncommitted script

Diffstat:
Mscripts/uncommitted | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/scripts/uncommitted b/scripts/uncommitted @@ -3,16 +3,13 @@ # How many minutes to wait before displaying a warning. readonly WARNING_MINUTES=15 -readonly repos=( - "$HOME/.config/" - "$HOME/journal/2023/" - "$HOME/org/" - "$HOME/projects/src/" -) +readonly repos="$()" check_repo() { local d="$1" + echo "Checking ${d}." + # Change into the directory. cd "${d}" || exit 1 @@ -39,7 +36,7 @@ check_repo() { } main() { - for d in "${repos[@]}"; do + pass repositories | while read -r d; do if ! [[ -d "$d" ]]; then err "$0: ${d} is not a directory" continue