File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11# shellcheck shell=bash
22# shellcheck disable=SC2034 # Expected behavior for themes.
3- # shellcheck disable=SC2154 #TODO: fix these all.
43
54# Define this here so it can be used by all of the Powerline themes
65THEME_CHECK_SUDO=${THEME_CHECK_SUDO:= true}
@@ -285,9 +284,9 @@ function __powerline_prompt_command() {
285284 [[ -n " ${info} " ]] && __powerline_left_segment " ${info} "
286285 done
287286
288- [[ " ${last_status} " -ne 0 ]] && __powerline_left_segment " $( __powerline_last_status_prompt ${last_status} ) "
287+ [[ " ${last_status} " -ne 0 ]] && __powerline_left_segment " $( __powerline_last_status_prompt " ${last_status} " ) "
289288
290- if [[ -n " ${LEFT_PROMPT} " ]] && [[ " ${POWERLINE_COMPACT_AFTER_LAST_SEGMENT} " -eq 0 ]]; then
289+ if [[ -n " ${LEFT_PROMPT} " ]] && [[ " ${POWERLINE_COMPACT_AFTER_LAST_SEGMENT:- } " -eq 0 ]]; then
291290 __powerline_left_last_segment_padding
292291 fi
293292
@@ -300,7 +299,7 @@ function __powerline_prompt_command() {
300299 fi
301300 [[ -n " ${LEFT_PROMPT} " ]] && LEFT_PROMPT+=" ${prompt_color}${separator_char}${normal} "
302301
303- if [[ " ${POWERLINE_COMPACT_PROMPT} " -eq 0 ]]; then
302+ if [[ " ${POWERLINE_COMPACT_PROMPT:- } " -eq 0 ]]; then
304303 LEFT_PROMPT+=" "
305304 fi
306305
You can’t perform that action at this time.
0 commit comments