You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add GEOMETRY_TITLE and GEOMETRY_CMDTITLE display locations.
Geometry was already controlling the terminal title. This change uses the geometry function plumbing to display information there.
The original explicit title-controlling code displayed the name and arguments of the currently-executing command. This change introduces a new geometry_cmd function to display this information from within the GEOMETRY_CMDTITLE configuration.
The riskiest change in this code is the hand-rolled deansi function. The colored output of geometry functions displays poorly in the terminal title, so non-text information needed to be removed.
Copy file name to clipboardExpand all lines: readme.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,17 +43,27 @@ tool | add to `.zshrc`
43
43
44
44

45
45
46
-
Geometry has very little architecture. Three environment variables define what is shown on the left, right, and on enter - `GEOMETRY_PROMPT`, `GEOMETRY_RPROMPT`, and `GEOMETRY_INFO`.
46
+
Geometry displays output in several places. The output displayed in each location is determined by the plugins configured for that location.
47
+
These are the supported locations, along with the environment variable used to configure each one.
47
48
48
-
Most of these functions only show up if it makes sense to (for example, `geometry_git` only shows up if in a git repository).
0 commit comments