Locate your current theme in ~/.zshrc
file defined under variable named ZSH_THEME
. You are supposed to edit the file according to the theme(current zsh theme) defined here. Default one is robbyrussell
.
For default theme edit this file: ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
Find PROMPT
variable definition in file(Note: You can find multiple variable declaration with concatenation, find the one that matches structure mentioned below). It should have something like below:
PROMPT+='%{$fg[blue]%}%~%{$reset_color%}
Modify the middle part of PROMPT
variable as your preference from following to change prompt path. Example how path would look like for each setting is shown below:
%~%
-> shows: ~/example_dir/temp/hello_world
%d%
-> shows: /User/ydave/Desktop/example_dir/temp/hello_world
%2d
-> shows: temp/hello_world
%3d
-> shows: example_dir/temp/hello_world
%c%
-> shows: hello_world