Skip to content

Commit 0721dbb

Browse files
alxblJonathan Dahan
authored andcommitted
feat: Added GEOMETRY_STATUS_SHOW_CODE and configuration.
1 parent 93def50 commit 0721dbb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

functions/geometry_exitcode.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# geometry_exitcode - show the exit code of the last status
2+
3+
geometry_exitcode() {
4+
(( $GEOMETRY_LAST_STATUS )) && ansi ${GEOMETRY_EXITCODE_COLOR:-red} $GEOMETRY_LAST_STATUS
5+
}

readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ GEOMETRY_STATUS_COLOR_HASH=true # color status symbol based on hostname
8787

8888
![colorize](/images/screenshots/colorize.png)
8989

90+
### geometry_exitcode
91+
This renders the exit code of the previous function if it is not success.
92+
93+
```shell
94+
GEOMETRY_EXITCODE_COLOR="red" # exit code color
95+
```
96+
9097
### geometry_git
9198

9299
The git function is one of the most developed plugins in geometry.

0 commit comments

Comments
 (0)