From e9c7bb34bd9778deebf3540640dc155c041840dd Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 8 Dec 2019 15:59:48 +0800 Subject: update --- alias | 2 +- tigrc | 9 +++++---- vimrc | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/alias b/alias index 1181f04..cbeb203 100644 --- a/alias +++ b/alias @@ -89,9 +89,9 @@ alias dp='docker ps' alias dpa='docker ps -a' alias di='docker images' alias dc='docker-compose run --rm' -alias dstop='docker stop' alias ds='docker stop' alias drm='docker rm' +alias dr='docker run --rm' # ssh alias keygen='ssh-keygen -t rsa -C "typebrook@gmail.com"' diff --git a/tigrc b/tigrc index 4e34004..4f09186 100644 --- a/tigrc +++ b/tigrc @@ -152,9 +152,9 @@ bind main ! ?git revert %(commit) bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)' -bind generic TM @sh -c 'git cat-file -p %(tag) | \ - sed -n \'6,$p\' | \ - git tag -a -F - "%(prompt Rename tag into: )" && git tag -d %(tag)' +bind generic TM @sh -c 'git cat-file -p %(tag) |\ + sed -n \'6,$p\' |\ + (git tag -d %(tag) && git tag "%(prompt Rename into? )" -a -F -) > /dev/null' bind generic Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" bind generic Ts >tig show %(tag) bind generic Td @git tag -d "%(prompt Delete tag: )" @@ -291,7 +291,8 @@ bind refs brd ?git branch -rd %(remote)/%(branch) bind refs f ?git fetch --all bind refs ?git fetch %(remote) bind refs F ?git fetch %(remote) %(ref) -bind refs pd ?git push %(remote) :%(ref) +bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) +bind refs pd ?git push '%(prompt Delete from which remote? )' :%(ref) bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" diff --git a/vimrc b/vimrc index 36c3cfd..6ef1333 100644 --- a/vimrc +++ b/vimrc @@ -68,6 +68,7 @@ vnoremap ' ``>la' vnoremap " ``>la" vnoremap ( ``>la) vnoremap { ``>la} +vnoremap [ ``>la] " abbrev iabbrev @@ typebrook@gmail.com -- cgit v1.2.3-70-g09d2