From 8ba84ebe20fedc82dcee09192d344a919883d074 Mon Sep 17 00:00:00 2001 From: Fang Deng Date: Wed, 30 Aug 2023 20:44:36 -0400 Subject: [PATCH] rich@bash: Rename global variable names --- rice/config/bash/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rice/config/bash/.bashrc b/rice/config/bash/.bashrc index 5ecb3e53..49d733d7 100644 --- a/rice/config/bash/.bashrc +++ b/rice/config/bash/.bashrc @@ -10,8 +10,8 @@ ### Environment variables ###################################################### declare -A RICE -RICE[rc]="$(dirname "$(realpath -s "${BASH_SOURCE[0]}")")" ## where this script is (no follow) -RICE[custom_rc]="${RICE[rc]}/custom.bash" +RICE[root_dir]="$(dirname "$(realpath -s "${BASH_SOURCE[0]}")")" ## where this script is (no follow) +RICE[custom_rc]="${RICE[root_dir]}/custom.bash" RICE[os_windows]=$([[ "$OS" =~ [Ww]indows ]] && echo 1) ### Commands ################################################################### @@ -20,7 +20,7 @@ function rice_include { ## The name should be the file basename without extension .bash. ## Usage: rice_include name [args] local name="${1:-}"; shift - source "${RICE[rc]}/librice/${name}" "$@"; + source "${RICE[root_dir]}/librice/${name}" "$@"; } function string_join {