Skip to content

customize node symbol #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lambda-pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ prompt_pure_preprompt_render() {
# NodeJS version
local rpreprompt
if (( ${PURE_NODE_ENABLED:-1} )); then
rpreprompt+="%F{green} ${prompt_pure_node_version}%f"
rpreprompt+="%F{green}${PURE_NODE_SYMBOL:=⬢} ${prompt_pure_node_version}%f"
fi

integer preprompt_left_length preprompt_right_length space_length
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ Defines the git up arrow symbol. The default value is `▲`.

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

### `PURE_NODE_SYMBOL`

Defines the NodeJS symbol. The default value is `⬢`.

### `PURE_NODE_ENABLED`

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