File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
4
4
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## 2.2.0 - 2020-01-13
7
+
8
+ ### Fixed
9
+ - Prepended space for left prompt (thanks @Konsonanz !)
10
+ - Hide extra spaces due to functions that have nothing to show (thanks @Konsonanz !)
11
+
6
12
## 2.1.0 - 2019-12-27
7
13
8
14
### Improved
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ geometry::wrap() {
73
73
local -a outputs
74
74
local cmd output
75
75
shift
76
- for cmd in $@ ; do output=$( $cmd ) ; (( $? )) || outputs+=$output ; done
76
+ for cmd in $@ ; do output=$( $cmd ) ; ( (( $? )) || [[ -z " ${output // } " ]] ) || outputs+=$output ; done
77
77
78
78
echo " ${(ej.${GEOMETRY_SEPARATOR:- } .)outputs} "
79
79
}
@@ -95,7 +95,7 @@ geometry::rprompt() {
95
95
96
96
geometry::prompt () {
97
97
GEOMETRY[LAST_STATUS]=" $status "
98
- PROMPT=" $( geometry::wrap $PWD $GEOMETRY_PROMPT ) "
98
+ PROMPT=" $( geometry::wrap $PWD $GEOMETRY_PROMPT ) "
99
99
geometry::rprompt
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments