dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit cfca47d8096245eaaf1acc1e457aa742db0a8adc
parent 95421ee7868ae87dafb3da7c0ead150a6ccd07b9
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 19 Aug 2017 16:39:21 -0700

Quote branch name in git_branch()

Diffstat:
M.zshrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.zshrc b/.zshrc @@ -33,7 +33,7 @@ zstyle ':completion:*' menu select # current git branch (for prompt) git_branch() { - local branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) + local branch="$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" if [[ -n $branch ]]; then echo -n " ($branch)" fi