Skip to content

Instantly share code, notes, and snippets.

@joeycozza
Last active January 17, 2018 22:00
Show Gist options
  • Save joeycozza/caa636927a93e3c55b26a18e2ec50441 to your computer and use it in GitHub Desktop.
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
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