From 5f8376c5429f7d9400b00183267fb69146485fc1 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 28 Aug 2019 11:18:03 +0800 Subject: update --- tigrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 79d1ce9..8143e43 100644 --- a/tigrc +++ b/tigrc @@ -167,11 +167,15 @@ bind main I >sh -c "hub issue | tig" # Misc ## Statistics -bind main gc !sh -c 'cloc --git %(commit) | tig' +bind main gc >sh -c 'cloc --git %(commit) | tig' ## Script to bump Android version bind main !sh scripts/bump_version.sh ## Remote -bind main gr +sh -c "git remote -v | grep %(remote)" +bind main Uv +sh -c "git remote -v | grep %(remote)" +bind main UV >sh -c "git remote -vv | tig" +bind main Ua @git remote add "%(prompt New remote name: )" "%(prompt Remote url: )" +bind main U! @git remote remove "%(prompt Remove which remote?: )" +bind main Us @git remote set-url "%(prompt Set url for which remote?: )" "%(prompt New url: )" # note #bind generic gnn !git notes edit %(commit) @@ -197,6 +201,10 @@ bind blob m >tig -- %(file) bind status j :/^[MADRU?] bind status k :?^[MADRU?] +# quick stage +bind status A @git add . +bind status R @git rm --cached . + # stash bind status s ?>git stash bind status S @git stash push -m "%(prompt Enter stash name: )" -- cgit v1.2.3-70-g09d2