style: Normalize variable expansions to ${var} across the repo

Replace bare $var with ${var} everywhere it was still used, matching
the convention already established in rc.d/prompt and rc.d/history.
Positional parameters ($1, $@, $#) and special variables ($?, $$, $-)
are left as-is, consistent with existing usage in _helpers.bash.

rc.d/broot is auto-generated by the broot binary and will likely be
overwritten with its original formatting on the next broot update.
This commit is contained in:
2026-08-22 00:55:39 +02:00
parent 6a53ee36fd
commit df189f9ec1
23 changed files with 83 additions and 83 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
# https://github.com/riywo/anyenv
# git clone https://github.com/riywo/anyenv $HOME/.anyenv
# git clone https://github.com/riywo/anyenv ${HOME}/.anyenv
if [ -d "$HOME/.anyenv/bin" ]
if [ -d "${HOME}/.anyenv/bin" ]
then
export PATH="$HOME/.anyenv/bin:$PATH"
export PATH="${HOME}/.anyenv/bin:${PATH}"
fi
+1 -1
View File
@@ -1,3 +1,3 @@
if (command -v krew &>/dev/null); then
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH="${KREW_ROOT:-${HOME}/.krew}/bin:${PATH}"
fi
+4 -4
View File
@@ -1,6 +1,6 @@
# Customize PATH
if [ -d $HOME/.bin ] ; then export PATH=$PATH:$HOME/.bin ; fi
if [ -d $HOME/.local/bin ] ; then export PATH=$PATH:$HOME/.local/bin ; fi
if [ -d "${HOME}/.bin" ] ; then export PATH="${PATH}:${HOME}/.bin" ; fi
if [ -d "${HOME}/.local/bin" ] ; then export PATH="${PATH}:${HOME}/.local/bin" ; fi
if [ -d $HOME/bin ] ; then export PATH=$PATH:$HOME/bin ; fi
if [ -d $HOME/scripts ] ; then export PATH=$PATH:$HOME/scripts ; fi
if [ -d "${HOME}/bin" ] ; then export PATH="${PATH}:${HOME}/bin" ; fi
if [ -d "${HOME}/scripts" ] ; then export PATH="${PATH}:${HOME}/scripts" ; fi