---
title: "Matthew Lowe (@lowey) | Hashnode"
description: "WordPress web developer. Read the latest articles by Matthew Lowe on Hashnode."
url: "https://hashnode.com/@lowey"
---

@lowey

# Matthew Lowe

@lowey · Joined December 2021

WordPress web developer

## Comments

[Very useful, thanks. I just bought a new mac and it defaults to zsh, so figured I might as well as make the leap from Bash to Zsh. Only comment I'd make is you need to include: setopt prompt\_subst else the $vcs\_info\_msg\_0\_ won't get expanded in the prompt. With your help and a little more searching I ended up with: autoload -Uz vcs\_info setopt prompt\_subst precmd () { vcs\_info } zstyle ':vcs\_info:\*' check-for-changes true zstyle ':vcs\_info:\*' unstagedstr '%F{red}\*%f' zstyle ':vcs\_info:\*' stagedstr '%F{green}\*%f' zstyle ':vcs\_info:\*' formats ' (%F{blue}%b%u%c%f)' PS1='\[ %B%n%b@%B%m%b:%F{green}%/%f$vcs\_info\_msg\_0\_ \] $ '](https://hashnode.com/posts/a-guide-to-customizing-the-zsh-shell-prompt/604a8704ad1cac7d577dfa5e/comment/61adedbe9dc5a836391ba942)

Comment · Article · Dec 6, 2021 · [A Guide to Customizing the Zsh Shell Prompt](https://hashnode.com/posts/a-guide-to-customizing-the-zsh-shell-prompt/604a8704ad1cac7d577dfa5e)
