From 3da7e0fc625776ea2c06a8593a2dcb766363500e Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 11 Apr 2019 11:00:49 +0800 Subject: update --- tigrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index c250978..0aeb27e 100644 --- a/tigrc +++ b/tigrc @@ -201,7 +201,7 @@ bind tree m >tig %(file) bind tree xx +sh -c "echo -n %(blob) | head -c7 | xclip -sel c && echo Blob Clipped" bind tree xb +sh -c "echo -n %(blob) | xclip -sel c && echo Full Blob Clipped" -bind tree xt +sh -c "git cat-file -p %(commit) | head -1 | cut -f 2 -d ' ' | xclip -sel c && echo Tree Clipped" +bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xclip -sel c -o | awk '{print \"Tree Clipped\", $1}'" bind tree xc +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped" #==================== -- cgit v1.2.3-70-g09d2