From 322d421c0fa8e8dd0be75e202797218027df3d69 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 19 Dec 2020 17:19:28 +0800 Subject: update --- alias | 1 + tigrc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/alias b/alias index 92b6c94..8cec108 100644 --- a/alias +++ b/alias @@ -101,6 +101,7 @@ alias cdd='cd ~/Downloads' alias cdD='cd ~/Documents' alias cdP='cd ~/Pictures' alias cdV='cd ~/Videos' +alias cdb='cd ~/git/bashblog' # git unalias gc &> /dev/null # override zsh plugin alias diff --git a/tigrc b/tigrc index cb726b7..d34b8d1 100644 --- a/tigrc +++ b/tigrc @@ -296,6 +296,9 @@ bind tree m >tig --follow -- %(file) bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xsel -ib -o | awk '{print \"Tree Clipped\", $1}'" +bind tree c NONE +bind tree cp +sh -c "git cat-file -p %(blob) >%(file) && echo File copied to %(file)" + bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" #==================== -- cgit v1.2.3-70-g09d2