$fg[cyan]~$reset_color $(git_prompt_info) Mac Os 终端问题
$fg[cyan]~$reset_color $(git_prompt_info) Mac Os terminal problem
我正在寻找有关我的终端中发生的问题的答案 mac。我研究了很多答案,none 解决了我的问题。
我在打开提示时收到此消息:
Last login: Tue Jul 20 14:17:28 on ttys001
➜ $fg[cyan]~$reset_color $(git_prompt_info)
我尝试过重新安装、更改 .zshrc 文件等
这是我的.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]%})"
对不起,我解释得不好,我是这个领域的品牌
谢谢大家!
行
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
没有意义。您使用的是单引号,它禁止参数扩展。请改用双引号。
我正在寻找有关我的终端中发生的问题的答案 mac。我研究了很多答案,none 解决了我的问题。
我在打开提示时收到此消息:
Last login: Tue Jul 20 14:17:28 on ttys001
➜ $fg[cyan]~$reset_color $(git_prompt_info)
我尝试过重新安装、更改 .zshrc 文件等
这是我的.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]%})"
对不起,我解释得不好,我是这个领域的品牌 谢谢大家!
行
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
没有意义。您使用的是单引号,它禁止参数扩展。请改用双引号。