在提示符后输入美元符号。zsh

问题描述 投票:0回答:1

我想在提示中的路径后添加美元符号。

当前提示是:

.oh-my-zsh git:(master) 

想要的提示是:

.oh-my-zsh git:(master) $

我试图在PROMPT中修改~/.zshrc,但没有成功。

zsh prompt
1个回答
1
投票
https://github.com/ohmyzsh/ohmyzsh/blob/c78277fd8bda5fec87504469afdf121355876006/themes/gozilla.zsh-theme#L1

PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$ % %{$reset_color%}'

© www.soinside.com 2019 - 2024. All rights reserved.