Skip to content

Commit f91af56

Browse files
frescorajaDavid James Carter
authored andcommitted
Add Option to Customize Node Symbol
1 parent 4974329 commit f91af56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lambda-pure.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ prompt_pure_preprompt_render() {
153153
# NodeJS version
154154
local rpreprompt
155155
if (( ${PURE_NODE_ENABLED:-1} )); then
156-
rpreprompt+="%F{green} ${prompt_pure_node_version}%f"
156+
rpreprompt+="%F{green}${PURE_NODE_SYMBOL:=⬢} ${prompt_pure_node_version}%f"
157157
fi
158158

159159
integer preprompt_left_length preprompt_right_length space_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_SYMBOL`
115+
116+
Defines the NodeJS symbol. The default value is ``.
117+
114118
### `PURE_NODE_ENABLED`
115119

116120
Set `PURE_NODE_ENABLED=0` to not display the NodeJS version.

0 commit comments

Comments
 (0)