File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,12 @@ add-zsh-hook precmd geometry::clear_title
52
52
53
53
# join outputs of functions - pwd first
54
54
geometry::wrap () {
55
- GEOMETRY_LAST_STATUS=" $status "
56
- setopt localoptions noautopushd; builtin cd -q $1
57
- local -a outputs
58
- local cmd output
59
- shift
60
- for cmd in $@ ; do output=$( $cmd ) ; (( $? )) || outputs+=$output ; done
61
- echo " ${(ps.${GEOMETRY_SEPARATOR} .)outputs} "
55
+ setopt localoptions noautopushd; builtin cd -q $1
56
+ local -a outputs
57
+ local cmd output
58
+ shift
59
+ for cmd in $@ ; do output=$( $cmd ) ; (( $? )) || outputs+=$output ; done
60
+ echo " ${(ps.${GEOMETRY_SEPARATOR} .)outputs} "
62
61
}
63
62
64
63
geometry::rprompt::set () {
@@ -77,6 +76,7 @@ geometry::rprompt() {
77
76
}
78
77
79
78
geometry::prompt () {
79
+ GEOMETRY_LAST_STATUS=" $status "
80
80
PROMPT=" $( geometry::wrap $PWD $GEOMETRY_PROMPT ) $GEOMETRY_SEPARATOR "
81
81
geometry::rprompt
82
82
}
You can’t perform that action at this time.
0 commit comments