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.