[英]$fg[cyan]~$reset_color $(git_prompt_info) Mac Os terminal problem
I'm looking for an answer about a problem that is happening in my terminal mac.我正在寻找有关我的终端 mac 中发生的问题的答案。 I research a lot of answers and none solved my problem.
我研究了很多答案,但没有一个能解决我的问题。
I'm getting this message when i open my prompt:当我打开提示时收到此消息:
Last login: Tue Jul 20 14:17:28 on ttys001
➜ $fg[cyan]~$reset_color $(git_prompt_info)
I've tried to reinstall, change .zshrc file, etc.我尝试重新安装、更改 .zshrc 文件等。
This is my .oh-my-zsh/themes/robbyrussell.zsh-theme这是我的 .oh-my-zsh/themes/robbyrussell.zsh-theme
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
Sorry for my bad explaining I'm brand in this area Thank you all!对不起,我的错误解释我在这方面的品牌谢谢大家!
The line线
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
does not make sense.没有意义。 You are using single quotes, which prohibit parameter expansion.
您正在使用单引号,它禁止参数扩展。 Use double quotes instead.
请改用双引号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.