Moebius
Moebius

Reputation: 6528

Modify oh my zsh default command prompt to have complete path for current directory

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) 

Upvotes: 6

Views: 6474

Answers (1)

Tomasz Bakula
Tomasz Bakula

Reputation: 161

To achieve that, paste the following line at the end of your .zshrc file:

PROMPT='${ret_status} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)'

Upvotes: 10

Related Questions