Load locals bashrc files

This commit is contained in:
Martin Blazik
2022-04-21 07:34:10 +02:00
parent ec3c159de0
commit 9315b2bdda
2 changed files with 11 additions and 0 deletions

View File

@@ -48,3 +48,11 @@ function can_run() {
command -v "$application" > /dev/null
}
function source_directory() {
local mask="$1"
for file in $mask; do
if [[ -f "$file" ]]; then
echo "$file"
fi
done
}

3
rc/99-local.sh Normal file
View File

@@ -0,0 +1,3 @@
# Load user locals bashrc
source_directory "$HOME/.bashrc.d/*.sh"