summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-12-08 15:59:48 +0800
committertypebrook <typebrook@gmail.com>2019-12-08 15:59:48 +0800
commite9c7bb34bd9778deebf3540640dc155c041840dd (patch)
tree13f6be69b047280ea6232ba4681e786daa23830d
parenta0e31953a99accf145e6242b7de20f71789e1515 (diff)
update
-rw-r--r--alias2
-rw-r--r--tigrc9
-rw-r--r--vimrc1
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'
89alias dpa='docker ps -a' 89alias dpa='docker ps -a'
90alias di='docker images' 90alias di='docker images'
91alias dc='docker-compose run --rm' 91alias dc='docker-compose run --rm'
92alias dstop='docker stop'
93alias ds='docker stop' 92alias ds='docker stop'
94alias drm='docker rm' 93alias drm='docker rm'
94alias dr='docker run --rm'
95 95
96# ssh 96# ssh
97alias keygen='ssh-keygen -t rsa -C "typebrook@gmail.com"' 97alias 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)
152bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) 152bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit)
153bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a 153bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a
154bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)' 154bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)'
155bind generic TM @sh -c 'git cat-file -p %(tag) | \ 155bind generic TM @sh -c 'git cat-file -p %(tag) |\
156 sed -n \'6,$p\' | \ 156 sed -n \'6,$p\' |\
157 git tag -a -F - "%(prompt Rename tag into: )" && git tag -d %(tag)' 157 (git tag -d %(tag) && git tag "%(prompt Rename into? )" -a -F -) > /dev/null'
158bind generic Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" 158bind generic Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )"
159bind generic Ts >tig show %(tag) 159bind generic Ts >tig show %(tag)
160bind generic Td @git tag -d "%(prompt Delete tag: )" 160bind generic Td @git tag -d "%(prompt Delete tag: )"
@@ -291,7 +291,8 @@ bind refs brd ?git branch -rd %(remote)/%(branch)
291bind refs <Esc>f ?git fetch --all 291bind refs <Esc>f ?git fetch --all
292bind refs <C-F> ?git fetch %(remote) 292bind refs <C-F> ?git fetch %(remote)
293bind refs F ?git fetch %(remote) %(ref) 293bind refs F ?git fetch %(remote) %(ref)
294bind refs pd ?git push %(remote) :%(ref) 294bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref)
295bind refs pd ?git push '%(prompt Delete from which remote? )' :%(ref)
295 296
296bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" 297bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig"
297bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" 298bind 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 ' <ESC>`<i'<ESC>`>la'<ESC>
68vnoremap " <ESC>`<i"<ESC>`>la"<ESC> 68vnoremap " <ESC>`<i"<ESC>`>la"<ESC>
69vnoremap ( <ESC>`<i(<ESC>`>la)<ESC> 69vnoremap ( <ESC>`<i(<ESC>`>la)<ESC>
70vnoremap { <ESC>`<i{<ESC>`>la}<ESC> 70vnoremap { <ESC>`<i{<ESC>`>la}<ESC>
71vnoremap [ <ESC>`<i[<ESC>`>la]<ESC>
71 72
72" abbrev 73" abbrev
73iabbrev @@ typebrook@gmail.com 74iabbrev @@ typebrook@gmail.com