Skip to content

Commit

Permalink
rich@bash: Rename global variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
peromage committed Aug 31, 2023
1 parent caff429 commit 8ba84eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rice/config/bash/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###################################################################
Expand All @@ -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 {
Expand Down

0 comments on commit 8ba84eb

Please sign in to comment.