6

I want to modify oh my zsh default command prompt to have complete path for current directory from home. I want :

➜  ~/parentFolder/myFolder git:(master) 

instead of :

➜  myFolder git:(master) 
Moebius
  • 6,242
  • 7
  • 42
  • 54

1 Answers1

10

To achive that past this line on the end of your .zshrc file:

PROMPT='${ret_status} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)'
Tomasz Bakula
  • 161
  • 1
  • 7
  • This completely breaks my ZSH prompt (even though it does technically show the full path now). All of the other stuff in my prompt is gone. Here is my old prompt: https://i.imgur.com/16g0sLD.png Here is my new prompt (after adding the line): https://i.imgur.com/7u0gJtL.png – Raleigh L. Aug 11 '22 at 09:11
  • 1
    @RaleighL. I'm not sure what happened in your case, but the accepted answer worked fine for me and the others. It's quite an old question, maybe something has changed and is outdated now. – Tomasz Bakula Aug 18 '22 at 15:12