Skip to content

Commit 4974329

Browse files
committed
Add option for disabling NodeJS version
1 parent edb3bf5 commit 4974329

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lambda-pure.zsh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ prompt_pure_preprompt_render() {
151151
preprompt+="%F{cyan}${prompt_pure_cmd_exec_time}%f"
152152

153153
# NodeJS version
154-
local rpreprompt="%F{green}⬢ ${prompt_pure_node_version}%f"
154+
local rpreprompt
155+
if (( ${PURE_NODE_ENABLED:-1} )); then
156+
rpreprompt+="%F{green}⬢ ${prompt_pure_node_version}%f"
157+
fi
155158

156159
integer preprompt_left_length preprompt_right_length space_length
157160
prompt_pure_string_length_to_var "${preprompt}" "preprompt_left_length"

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ Defines the git up arrow symbol. The default value is `▲`.
111111

112112
Defines the git dirty symbol. The default value is `×`.
113113

114+
### `PURE_NODE_ENABLED`
115+
116+
Set `PURE_NODE_ENABLED=0` to not display the NodeJS version.
117+
114118
## Example
115119

116120
```sh

0 commit comments

Comments
 (0)