From 2f4bd5f5c279f7b68dfd5a7410078b46074f2baa Mon Sep 17 00:00:00 2001 From: Alberto Donato Date: Tue, 15 Oct 2024 11:42:22 +0200 Subject: [PATCH] get bash.d dir from the sript source --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 01abc7a..3986e01 100644 --- a/bashrc +++ b/bashrc @@ -5,9 +5,9 @@ SYSTEM_DIR=$HOME/system -SYSTEM_BASH_DIR=$SYSTEM_DIR/bash.d +SYSTEM_BASH_DIR="$(realpath $(dirname ${BASH_SOURCE[0]}))" # Export for scripts -export SYSTEM_SH_LIB_DIR=$SYSTEM_BASH_DIR/lib +export SYSTEM_SH_LIB_DIR="$SYSTEM_BASH_DIR/lib" source_if_exists() { if [ -f "$1" ]; then