From d654041a4882668e63cbae4305f45b24eb88ac76 Mon Sep 17 00:00:00 2001 From: hophacker Date: Fri, 22 Feb 2019 11:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E5=BE=97pbcopy=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=B8=80=E4=BB=BD=E5=88=B0=E5=B1=8F=E5=B9=95=E4=BB=A5=E4=BE=9B?= =?UTF-8?q?check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 74bfd2b..6a1c5ee 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -147,5 +147,5 @@ function gitcopy() { done repo=`git remote get-url origin | sed -E 's/.*:(.*)\.git/\1/'` project_name=`echo $repo | sed -E 's/.*\/(.*)/\1/'` - git log $commit --pretty="* [$project_name](https://github.com/$repo/commit/%H) %an: **%s**" | head -n $n | tee | pbcopy + git log $commit --pretty="* [$project_name](https://github.com/$repo/commit/%H) %an: **%s**" | head -n $n | tee >(pbcopy) }