File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
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.0.4 - 2019-10-14
7
+
8
+ ### Fixed
9
+ - Breaking GEOMETRY_SEPARATOR, especially on left prompt (thanks @diogoazevedos !)
10
+ - Respond to changes in GEOMETRY_SEPARATOR dynamically
11
+
6
12
## 2.0.3 - 2019-10-11
7
13
8
14
### Added
Original file line number Diff line number Diff line change 6
6
7
7
typeset -gA GEOMETRY
8
8
GEOMETRY[ROOT]=${0: A: h}
9
- : ${GEOMETRY_SEPARATOR:= " " }
10
9
11
10
(( $+ GEOMETRY_PROMPT)) || GEOMETRY_PROMPT=(geometry_echo geometry_status geometry_path)
12
11
(( $+ GEOMETRY_RPROMPT)) || GEOMETRY_RPROMPT=(geometry_exec_time geometry_git geometry_hg geometry_echo)
@@ -58,7 +57,8 @@ geometry::wrap() {
58
57
local cmd output
59
58
shift
60
59
for cmd in $@ ; do output=$( $cmd ) ; (( $? )) || outputs+=$output ; done
61
- echo " ${(ps.${GEOMETRY_SEPARATOR} .)outputs} "
60
+
61
+ echo " ${(ej.${GEOMETRY_SEPARATOR:- } .)outputs} "
62
62
}
63
63
64
64
geometry::rprompt::set () {
@@ -78,7 +78,7 @@ geometry::rprompt() {
78
78
79
79
geometry::prompt () {
80
80
GEOMETRY[LAST_STATUS]=" $status "
81
- PROMPT=" $( geometry::wrap $PWD $GEOMETRY_PROMPT ) $GEOMETRY_SEPARATOR "
81
+ PROMPT=" $( geometry::wrap $PWD $GEOMETRY_PROMPT ) "
82
82
geometry::rprompt
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments