Skip to content

Commit a7b1bbb

Browse files
author
Jonathan Dahan
committed
echo empty string with geometry_exitcode if its 0
1 parent d5c1109 commit a7b1bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/geometry_exitcode.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# geometry_exitcode - show the exit code of the last status
22

33
geometry_exitcode() {
4-
(( $GEOMETRY[LAST_STATUS] )) && ansi ${GEOMETRY_EXITCODE_COLOR:-red} $GEOMETRY[LAST_STATUS]
4+
(( $GEOMETRY[LAST_STATUS] )) && ansi ${GEOMETRY_EXITCODE_COLOR:-red} $GEOMETRY[LAST_STATUS] || echo ''
55
}

0 commit comments

Comments
 (0)