Skip to content

Commit a54a88f

Browse files
author
jedahan
committed
Remove lingering references to geometry_jj
1 parent 3b1238a commit a54a88f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

geometry.zsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
builtin typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}
88

99
(($+GEOMETRY_PROMPT)) || GEOMETRY_PROMPT=(geometry_echo geometry_status geometry_path)
10-
(($+GEOMETRY_RPROMPT)) || GEOMETRY_RPROMPT=(geometry_exec_time geometry_git geometry_hg geometry_jj geometry_echo)
10+
(($+GEOMETRY_RPROMPT)) || GEOMETRY_RPROMPT=(geometry_git geometry_hg geometry_jj geometry_echo)
1111
(($+GEOMETRY_INFO)) || GEOMETRY_INFO=()
1212
(($+GEOMETRY_TITLE)) || GEOMETRY_TITLE=(geometry_path)
1313
(($+GEOMETRY_CMDTITLE)) || GEOMETRY_CMDTITLE=(geometry_cmd geometry_hostname)
@@ -19,7 +19,6 @@ fpath+=("${GEOMETRY[ROOT]}"/functions)
1919
autoload -Uz \
2020
geometry_docker_machine \
2121
geometry_echo \
22-
geometry_exec_time \
2322
geometry_exitcode \
2423
geometry_git \
2524
geometry_hg \

options.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ and functionality.
77
## Table of Contents
88

99
- [`geometry_docker_machine`](#geometry_docker_machine)
10-
- [`geometry_exec_time`](#geometry_exec_time)
1110
- [`geometry_git`](#geometry_git)
1211
- [`geometry_git_stashes()`](#geometry_git_stashes)
1312
- [`geometry_git_time()`](#geometry_git_time)
@@ -21,6 +20,7 @@ and functionality.
2120
- [`geometry_hg`](#geometry_hg)
2221
- [`geometry_hostname`](#geometry_hostname)
2322
- [`geometry_jobs`](#geometry_jobs)
23+
- [`geometry_jj`](#geometry_jj)
2424
- [`geometry_kube`](#geometry_kube)
2525
- [`geometry_node`](#geometry_node)
2626
- [`geometry_npm_package_version`](#geometry_npm_package_version)
@@ -40,14 +40,6 @@ Show the docker machine name.
4040
| `GEOMETRY_DOCKER_MACHINE_SYMBOL` | Indicator | `` |
4141
| `GEOMETRY_DOCKER_MACHINE_COLOR` | Color of the machine name | `blue` |
4242

43-
## `geometry_exec_time`
44-
45-
Show the elapsed time for long running commands.
46-
47-
| Variable | Description | Default |
48-
| ----------------------------- | -------------------------------------------- | -------- |
49-
| `GEOMETRY_EXEC_TIME_PATIENCE` | Seconds before the time is shown | `5` |
50-
5143
## `geometry_git`
5244

5345
Show git related information, such as branch name, status and time since last commit.
@@ -136,6 +128,15 @@ Shows user and hostname information, by default in the `enter` prompt.
136128
| `GEOMETRY_HOSTNAME_HIDE_ON` | Hide the username and hostname when the hostname matches | `localhost` |
137129
| `GEOMETRY_HOSTNAME_SEPARATOR` | Separator between user and hostname | `@` |
138130

131+
## `geometry_jj`
132+
133+
Show jujutsu change_id + commit_id
134+
135+
| Variable | Description | Default |
136+
| ----------------------------- | ------------------------| ------------------------------------------------------------------------------ |
137+
| `GEOMETRY_JJ_TEMPLATE` | jj template to display | `"%F{5}" ++ change_id.shortest() ++ "%F{4}" ++ commit_id.shortest() ++ "%f% "` |
138+
139+
139140
## `geometry_jobs`
140141

141142
Shows background jobs, by default in the `enter` prompt.

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To customize the prompt, add any function to the list of functions for the desir
6060

6161
```sh
6262
GEOMETRY_PROMPT=(geometry_status geometry_path) # redefine left prompt
63-
GEOMETRY_RPROMPT+=(geometry_exec_time pwd) # append exec_time and pwd right prompt
63+
GEOMETRY_RPROMPT+=(pwd) # append current working directory to right prompt
6464
GEOMETRY_TITLE=(geometry_node)
6565
```
6666

0 commit comments

Comments
 (0)