Silence ShellCheck warnings
All checks were successful
ShellCheck / shellcheck (push) Successful in 13s

This commit is contained in:
2026-01-25 00:23:55 +00:00
parent 0e87cee872
commit dd1ba72cd1

View File

@@ -220,6 +220,7 @@ __try_source_git_prompt() {
"/etc/bash_completion.d/git-prompt.sh" "/etc/bash_completion.d/git-prompt.sh"
) )
for f in "${candidates[@]}"; do for f in "${candidates[@]}"; do
# shellcheck disable=SC1090
[[ -r "$f" ]] && source "$f" && return 0 [[ -r "$f" ]] && source "$f" && return 0
done done
return 1 return 1
@@ -380,7 +381,9 @@ _ps1_symbol() {
coffee="☕"; evening="🌆"; night="🌙" coffee="☕"; evening="🌆"; night="🌙"
;; ;;
*) *)
# shellcheck disable=SC2034
sunrise_list=( "🏔️" "🌨️" "❄️" "🌌" ) sunrise_list=( "🏔️" "🌨️" "❄️" "🌌" )
# shellcheck disable=SC2034
work_list=( "🎿" "⛷️" "🏂" "🧊" ) work_list=( "🎿" "⛷️" "🏂" "🧊" )
coffee="☕"; evening="🌆"; night="🌙" coffee="☕"; evening="🌆"; night="🌙"
;; ;;
@@ -720,7 +723,8 @@ ${PREFIX}${M_FG}⟦${L1}⟧ ${M_DIM}${HOST_PART}${PATH_SEP}${M_FG}${PATH_PART}${
local G_Z2_BG="\[\e[48;5;37m\]" local G_Z2_BG="\[\e[48;5;37m\]"
local G_Z2_FG="\[\e[38;5;255m\]" local G_Z2_FG="\[\e[38;5;255m\]"
local G_PATH_FG="\[\e[38;5;194m\]" local G_PATH_FG="\[\e[38;5;194m\]"
local GIT_INFO="$(__git_capsule)" local GIT_INFO
GIT_INFO="$(__git_capsule)"
local G_LEFT="" local G_LEFT=""
local G_RIGHT="" local G_RIGHT=""
local G_SEP="" local G_SEP=""
@@ -864,7 +868,8 @@ ${T_FRAME}╭─${RST}${T_MAIN}${L1}${RST} ${T_FRAME}${L_HOST}${RST} $(_ps1_path
local G_FRAME="\[\e[38;5;129m\]" local G_FRAME="\[\e[38;5;129m\]"
local G_MAIN="\[\e[38;5;118m\]" local G_MAIN="\[\e[38;5;118m\]"
local G_DIM="\[\e[38;5;60m\]" local G_DIM="\[\e[38;5;60m\]"
local G_SEP="$(_ps1_glitch_glyph)" local G_SEP
G_SEP="$(_ps1_glitch_glyph)"
PS1="\ PS1="\
${G_FRAME}╭─${RST}${G_MAIN}${L1}${RST} ${G_DIM}${G_SEP}${RST} ${G_MAIN}${L_HOST} ${RST}${G_DIM}${G_SEP}${RST} ${G_MAIN}${__PS1_PATH}${RST}\ ${G_FRAME}╭─${RST}${G_MAIN}${L1}${RST} ${G_DIM}${G_SEP}${RST} ${G_MAIN}${L_HOST} ${RST}${G_DIM}${G_SEP}${RST} ${G_MAIN}${__PS1_PATH}${RST}\
\n${G_FRAME}╰─${RST}${prompt_sym} ${__PS1_SYM}${git_tail}" \n${G_FRAME}╰─${RST}${prompt_sym} ${__PS1_SYM}${git_tail}"