This commit is contained in:
light24bulbs 2017-05-07 14:24:06 +00:00 committed by GitHub
commit 9510e786b4

18
themes/nira.zsh-theme Normal file
View file

@ -0,0 +1,18 @@
# Based on bira zsh theme but with NVM instead of RVM - Preview: http://i.imgur.com/TnIzmkD.jpg
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local nvm_node=''
nvm_node='%{$fg[green]%}node-$(nvm_prompt_info)%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
PROMPT="╭─${user_host} ${current_dir} ${nvm_node} ${git_branch}
╰─%B$%b "
RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=") %{$reset_color%}"