Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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) 
like image 577
Moebius Avatar asked Aug 19 '16 13:08

Moebius


1 Answers

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

PROMPT='${ret_status} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)'
like image 100
Tomasz Bakula Avatar answered Sep 23 '22 15:09

Tomasz Bakula