mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Mira theme: define jenv_prompt_info if not defined
Should no longer see 'zsh: command not found: jenv_prompt_info'
This commit is contained in:
parent
aa15ebad3e
commit
6b1d6ca581
1 changed files with 9 additions and 0 deletions
|
|
@ -16,6 +16,15 @@ fi
|
|||
local nvm_node=''
|
||||
nvm_node='%{$fg[green]%}‹node-$(nvm_prompt_info)›%{$reset_color%}'
|
||||
|
||||
|
||||
if ! type "jenv_prompt_info" | grep -q 'shell function'; then
|
||||
jenv_prompt_info()
|
||||
{
|
||||
echo -n
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
local jenv_java=''
|
||||
jenv_java='%{$fg[blue]%}‹$(jenv_prompt_info)›%{$reset_color%}'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue