Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Dollar Sign after path in prompt .zsh

Tags:

prompt

zsh

I want to add the dollar sign after the path in my prompt.

Current prompt is:

.oh-my-zsh git:(master) 

Wanted prompt is:

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

I tried to modify PROMPT in ~/.zshrc without success.

like image 425
monkeyUser Avatar asked Oct 28 '25 08:10

monkeyUser


1 Answers

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%}'

like image 111
Barno Avatar answered Oct 31 '25 11:10

Barno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!