diff options
author | typebrook <typebrook@gmail.com> | 2019-12-08 15:59:48 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-08 15:59:48 +0800 |
commit | e9c7bb34bd9778deebf3540640dc155c041840dd (patch) | |
tree | 13f6be69b047280ea6232ba4681e786daa23830d | |
parent | a0e31953a99accf145e6242b7de20f71789e1515 (diff) |
update
-rw-r--r-- | alias | 2 | ||||
-rw-r--r-- | tigrc | 9 | ||||
-rw-r--r-- | vimrc | 1 |
3 files changed, 7 insertions, 5 deletions
@@ -89,9 +89,9 @@ alias dp='docker ps' | |||
89 | alias dpa='docker ps -a' | 89 | alias dpa='docker ps -a' |
90 | alias di='docker images' | 90 | alias di='docker images' |
91 | alias dc='docker-compose run --rm' | 91 | alias dc='docker-compose run --rm' |
92 | alias dstop='docker stop' | ||
93 | alias ds='docker stop' | 92 | alias ds='docker stop' |
94 | alias drm='docker rm' | 93 | alias drm='docker rm' |
94 | alias dr='docker run --rm' | ||
95 | 95 | ||
96 | # ssh | 96 | # ssh |
97 | alias keygen='ssh-keygen -t rsa -C "typebrook@gmail.com"' | 97 | alias keygen='ssh-keygen -t rsa -C "typebrook@gmail.com"' |
@@ -152,9 +152,9 @@ bind main ! ?git revert %(commit) | |||
152 | bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) | 152 | bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) |
153 | bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a | 153 | bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a |
154 | bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)' | 154 | bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)' |
155 | bind generic TM @sh -c 'git cat-file -p %(tag) | \ | 155 | bind 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' |
158 | bind generic Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" | 158 | bind generic Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" |
159 | bind generic Ts >tig show %(tag) | 159 | bind generic Ts >tig show %(tag) |
160 | bind generic Td @git tag -d "%(prompt Delete tag: )" | 160 | bind generic Td @git tag -d "%(prompt Delete tag: )" |
@@ -291,7 +291,8 @@ bind refs brd ?git branch -rd %(remote)/%(branch) | |||
291 | bind refs <Esc>f ?git fetch --all | 291 | bind refs <Esc>f ?git fetch --all |
292 | bind refs <C-F> ?git fetch %(remote) | 292 | bind refs <C-F> ?git fetch %(remote) |
293 | bind refs F ?git fetch %(remote) %(ref) | 293 | bind refs F ?git fetch %(remote) %(ref) |
294 | bind refs pd ?git push %(remote) :%(ref) | 294 | bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) |
295 | bind refs pd ?git push '%(prompt Delete from which remote? )' :%(ref) | ||
295 | 296 | ||
296 | bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" | 297 | bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" |
297 | bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" | 298 | bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" |
@@ -68,6 +68,7 @@ vnoremap ' <ESC>`<i'<ESC>`>la'<ESC> | |||
68 | vnoremap " <ESC>`<i"<ESC>`>la"<ESC> | 68 | vnoremap " <ESC>`<i"<ESC>`>la"<ESC> |
69 | vnoremap ( <ESC>`<i(<ESC>`>la)<ESC> | 69 | vnoremap ( <ESC>`<i(<ESC>`>la)<ESC> |
70 | vnoremap { <ESC>`<i{<ESC>`>la}<ESC> | 70 | vnoremap { <ESC>`<i{<ESC>`>la}<ESC> |
71 | vnoremap [ <ESC>`<i[<ESC>`>la]<ESC> | ||
71 | 72 | ||
72 | " abbrev | 73 | " abbrev |
73 | iabbrev @@ typebrook@gmail.com | 74 | iabbrev @@ typebrook@gmail.com |