X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Fzshrc%2F60_vcsprompt;h=d12f686c2531f618d46ce8bfd88493b5ad902ea9;hb=1c5183b398c7cd9b0456157f615553bb095385b4;hp=aeabd7744054d431ec6e7f93a2ce7009af9d3d3e;hpb=ba5bd95983d7b78f798c44022dfafac797b89228;p=zsh.git 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 }