From 07f2a0e3bc42d5e182c46d334702cc8adee5f6db Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 29 Mar 2019 15:37:21 +0800 Subject: update --- tigrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 74b37b4..f40c9e5 100644 --- a/tigrc +++ b/tigrc @@ -23,6 +23,10 @@ bind generic gr view-grep # toggle case sensitive for search bind generic w :toggle ignore-case +# override refresh +bind generic R none +bind generic refresh + # see reflog, reset refernece bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} @@ -54,7 +58,7 @@ bind main b none bind main bn @git branch "%(prompt Enter branch name: )" %(commit) bind main bd @git branch -d "%(prompt Delete branch: )" bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" -bind main bv +sh -c "git branch -vv | grep '*'" +bind main bv +sh -c "git branch -vv | grep %(branch)" bind main c @sh -c "git branch --points-at=%(commit) | \ sed -n '/^*/ {n;p}' | \ (cat -; echo %(commit)) | \ @@ -77,7 +81,7 @@ bind main pP ?git push -u %(remote) %(branch):%(branch) # reset/rebase/revert bind main u ?git reset %(commit) bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" -bind main !?git rebase -i %(commit) +bind main R !?git rebase -i %(commit) bind main ! ?git revert %(commit) # tag @@ -201,7 +205,7 @@ bind diff p :?^diff --(git|cc) # edit tigrc bind help e >sh -c "vim ~/.tigrc" -bind help R :source ~/.tigrc +bind help :source ~/.tigrc #==================== # color -- cgit v1.2.3-70-g09d2