We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GEOMETRY_STATUS_SHOW_CODE
1 parent 93def50 commit 0721dbbCopy full SHA for 0721dbb
functions/geometry_exitcode.zsh
@@ -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
@@ -87,6 +87,13 @@ GEOMETRY_STATUS_COLOR_HASH=true # color status symbol based on hostname
87
88

89
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
97
### geometry_git
98
99
The git function is one of the most developed plugins in geometry.
0 commit comments