Created
November 27, 2020 07:27
-
-
Save imekachi/c320a3a0a1d69f3513ac4e4c61fa35ba to your computer and use it in GitHub Desktop.
Add node version, yarn version to pure prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add before prompt_pure_preprompt_render | |
prompt_node_npm() { | |
local nodeVersion=`node --version | sed -e "s/v//g"` | |
local yarnVersion=`yarn --version` | |
preprompt_parts+="%F{green}⬢%f $nodeVersion 📦 $yarnVersion" | |
} | |
## add below | |
## Git pull/push arrows. | |
# if [[ -n $prompt_pure_git_arrows ]]; then | |
# preprompt_parts+=('%F{$prompt_pure_colors[git:arrow]}${prompt_pure_git_arrows}%f') | |
# fi | |
# Add node and npm versions. | |
prompt_node_npm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment