From 1e92b39650765424ef7b07977c27fdfbafaae96e Mon Sep 17 00:00:00 2001 From: Alek Bloch Date: Fri, 9 Jan 2026 23:58:59 +0100 Subject: [PATCH] Fix pre-commit failures in themes directory --- themes/modern-t/modern-t.theme.bash | 2 +- themes/powerturk/powerturk.theme.bash | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/modern-t/modern-t.theme.bash b/themes/modern-t/modern-t.theme.bash index eed15a94de..644332364e 100644 --- a/themes/modern-t/modern-t.theme.bash +++ b/themes/modern-t/modern-t.theme.bash @@ -29,7 +29,7 @@ esac PS3=">> " is_vim_shell() { - if [ ! -z "$VIMRUNTIME" ]; then + if [ -n "$VIMRUNTIME" ]; then echo "[${cyan?}vim shell${normal?}]" fi } diff --git a/themes/powerturk/powerturk.theme.bash b/themes/powerturk/powerturk.theme.bash index 01be0f19b2..e61abfb6e7 100644 --- a/themes/powerturk/powerturk.theme.bash +++ b/themes/powerturk/powerturk.theme.bash @@ -41,6 +41,7 @@ _collapsed_wd() { | sed -re "s/\//  /g" } +# shellcheck disable=SC2120 _swd() { # Adapted from http://stackoverflow.com/a/2951707/1766716 begin="" # The unshortened beginning of the path.