commit 95421ee7868ae87dafb3da7c0ead150a6ccd07b9
parent a12f977fbff7d08b7fe23da62b371f0afd6c05a7
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 2 Aug 2017 16:24:53 -0700
Disable newline echo in git_branch function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.zshrc b/.zshrc
@@ -35,7 +35,7 @@ zstyle ':completion:*' menu select
git_branch() {
local branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [[ -n $branch ]]; then
- echo " ($branch)"
+ echo -n " ($branch)"
fi
}