Skip to content

Instantly share code, notes, and snippets.

@spacesuitdiver
spacesuitdiver / robbyrussell.zsh_theme
Created October 9, 2018 17:15 — forked from mikehazell/robbyrussell.zsh_theme
oh-my-zsh Default Theme plus Node version info
# oh-my-zsh Theme
# Default robbyrussell theme with node version info.
# Installation: place this file in .oh-my-zsh/custom/themes/robbyrussell.zsh_theme
function node_prompt_version {
if which node &> /dev/null; then
echo "%{$fg_bold[blue]%}node(%{$fg[red]%}$(node -v)%{$fg[blue]%}) %{$reset_color%}"
fi
}