mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
18 lines
643 B
Bash
18 lines
643 B
Bash
# 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%}"
|