From 5f34a078017ce4df14a7c20a05f07a9ebc946c16 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 19 Mar 2024 16:31:51 +0530 Subject: [PATCH] bashrc: warn when a file cannot be sourced because it does not exist --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index b956d4e..ee80114 100644 --- a/.bashrc +++ b/.bashrc @@ -124,6 +124,8 @@ for fts in "${FILES_TO_SOURCE[@]}"; do if [[ -f "${fts}" ]]; then # shellcheck disable=SC1090 source "${fts}" + else + echo "WARNING: '${fts}' does not exist." fi done