Last active
January 17, 2018 22:00
-
-
Save joeycozza/caa636927a93e3c55b26a18e2ec50441 to your computer and use it in GitHub Desktop.
Adding node version to the right of the garyblessington prompt. Requires nvm to be used for node versioning
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
ZSH_THEME_NVM_PROMPT_PREFIX="%{$fg[green]%}⬢ " | |
ZSH_THEME_NVM_PROMPT_SUFFIX="" | |
local node_version='$(nvm_prompt_info)' | |
PROMPT='%{$fg[cyan]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}: ' | |
RPROMPT="${node_version}%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$fg[blue]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment