From bc70f8fe56ee3aa16ac7a65b7777e115efda1c33 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 12 Jun 2009 17:01:12 +0200 Subject: [PATCH] use ellipsis in git preprompt --- .zsh/zshrc/60_vcsprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zsh/zshrc/60_vcsprompt b/.zsh/zshrc/60_vcsprompt index aeabd77..d12f686 100644 --- a/.zsh/zshrc/60_vcsprompt +++ b/.zsh/zshrc/60_vcsprompt @@ -38,12 +38,12 @@ __git_print_preprompt() output=(${(f):-"$(git diff --stat --relative 2>/dev/null)"}) if [[ ${#output} -gt 1 ]]; then echo changes on filesystem: - print "${(F)output[1,-2]}" + print "${${(F)output[1,-2]}//\.\.\./…}" fi output=(${(f):-"$(git diff --cached --stat --relative 2>/dev/null)"}) if [[ ${#output} -gt 1 ]]; then echo cached/staged changes: - print "${(F)output[1,-2]}" + print "${${(F)output[1,-2]}//\.\.\./…}" fi } -- 2.39.5