From ac10db27cc8deea91b65a3cfce7c7823e56f9781 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 15 Jul 2024 02:28:38 +0200 Subject: [PATCH] fix(zsh): apply shfmt fixes --- .zsh_functions/prompt_warg_setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zsh_functions/prompt_warg_setup b/.zsh_functions/prompt_warg_setup index b52b592..d5ef04c 100644 --- a/.zsh_functions/prompt_warg_setup +++ b/.zsh_functions/prompt_warg_setup @@ -5,14 +5,14 @@ # For help with parameters, see: # - https://zsh.sourceforge.io/Doc/Release/Parameters.html - # shellcheck disable=SC2034 function prompt_warg_precmd() { - local -a _status=(${pipestatus[@]}) + local -a _status=("${pipestatus[@]}") RPS1="" # Status code if [[ ${#${_status//0/}} -gt 0 ]]; then + # shellcheck disable=SC2296 RPS1="$RPS1 %F{red}${(j:|:)_status}%f" fi @@ -41,7 +41,7 @@ function prompt_warg_precmd() { fi # Timestamp - RPS1="$RPS1 %F{008}%D{%H:%M:%S}%f" + RPS1="$RPS1 %8F%D{%H:%M:%S}%f" } # shellcheck disable=SC2034