From d59cc35157e6d399760e7c9127eadf7a75af5003 Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 15 Jul 2019 19:42:00 +0800 Subject: [PATCH] put 12 spaces before commit stat info --- zsh/functions.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 36049ec..1f3b42f 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -154,7 +154,8 @@ function gitcopy() { prefix=`git remote get-url origin | sed -E 's/git@github.com:/https:\/\/github.com\//g' | sed -E 's/(.*)\.git/\1/'` project_name=`echo $prefix | sed -E 's/.*\/(.*)/\1/'` commits=`git log $commit -n $n --stat --pretty=" -* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/> /'` +* [$project_name]($prefix/commit/%H) %an: **%s**" | sed 's/^[^*]/ /'` + echo $commits which pbcopy &> /dev/null if [[ $? == '0' ]]; then echo $commits | pbcopy