You can modify the second line of this file:
~/.oh-my-zsh/themes/robbyrussell.zsh-theme
Which looks like this:
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
# ^ replace c with ~
Then source theme again:
source ~/.zshrc
It will now show the path relative to your home directory (~
). For example:
# BEFORE
➜ sqlboiler git:(master)
# AFTER
➜ ~/open-source/sqlboiler git:(master)