Skip to content

Commit deee49f

Browse files
committed
Use jobstates associative array instead of jobs builtin
via command substitution, which was starting a subshell.
1 parent 33aeaf9 commit deee49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eriner.zsh-theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _prompt_eriner_status() {
4545
local segment=
4646
if (( RETVAL )) segment+=' %F{red}✘'
4747
if (( EUID == 0 )) segment+=' %F{yellow}⚡'
48-
if (( $(jobs -l | wc -l) )) segment+=' %F{cyan}⚙'
48+
if (( ${#jobstates} )) segment+=' %F{cyan}⚙'
4949
if (( RANGER_LEVEL )) segment+=' %F{cyan}r'
5050
if [[ -n ${VIRTUAL_ENV} ]] segment+=" %F{cyan}${VIRTUAL_ENV:t}"
5151
if [[ -n ${SSH_TTY} ]] segment+=" %F{%(!.yellow.default)}%n@%m"

0 commit comments

Comments
 (0)