From dd1ba72cd1867aaf83f335cc4ca94d8aef26f42d Mon Sep 17 00:00:00 2001 From: steffen Date: Sun, 25 Jan 2026 00:23:55 +0000 Subject: [PATCH] Silence ShellCheck warnings --- dotfiles/ps1/ps1.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dotfiles/ps1/ps1.sh b/dotfiles/ps1/ps1.sh index 44f107a..c37b729 100644 --- a/dotfiles/ps1/ps1.sh +++ b/dotfiles/ps1/ps1.sh @@ -220,6 +220,7 @@ __try_source_git_prompt() { "/etc/bash_completion.d/git-prompt.sh" ) for f in "${candidates[@]}"; do + # shellcheck disable=SC1090 [[ -r "$f" ]] && source "$f" && return 0 done return 1 @@ -380,7 +381,9 @@ _ps1_symbol() { coffee="☕"; evening="🌆"; night="🌙" ;; *) + # shellcheck disable=SC2034 sunrise_list=( "🏔️" "🌨️" "❄️" "🌌" ) + # shellcheck disable=SC2034 work_list=( "🎿" "⛷️" "🏂" "🧊" ) 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_FG="\[\e[38;5;255m\]" 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_RIGHT="" 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_MAIN="\[\e[38;5;118m\]" local G_DIM="\[\e[38;5;60m\]" - local G_SEP="$(_ps1_glitch_glyph)" + local G_SEP + G_SEP="$(_ps1_glitch_glyph)" 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}\ \n${G_FRAME}╰─${RST}${prompt_sym} ${__PS1_SYM}${git_tail}"