How to get absolute path on a zsh prompt?
<p>I'm switching from bash to zsh. </p>

<p>I want to update my new zsh prompt and looked around to find a way, but I have only found "solutions" via oh-my-zsh.</p>

<p><strong>The goal:</strong> </p>

<pre><code>Location: ~/dir_1/dir_1_1/dir_1_1_1
</code></pre>

<p><strong>What I have:</strong></p>

<pre><code>Location: dir_1_1_1
</code></pre>

<p>The code <a href="https://github.com/thoughtbot/dotfiles/blob/master/zsh/configs/prompt.zsh#L9" rel="noreferrer">(source)</a>:</p>

<pre><code> PS1='${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[green]%}Location: %c%{$reset_color%}$(git_prompt_info) '
</code></pre>