zsh theme for full path + display git changes

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)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)