diff options
author | typebrook <typebrook@gmail.com> | 2019-12-26 12:08:53 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-26 12:08:53 +0800 |
commit | eaa831f9ca033a3ed9d6bad55f0e12fdac21fa54 (patch) | |
tree | df0b61bdd6d690ca6be62dac257704ce27b571ec | |
parent | 3c54a3762681a099b79a2d7f93af3e38218c8d46 (diff) |
update
-rw-r--r-- | alias | 5 | ||||
-rw-r--r-- | tigrc | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -7,6 +7,7 @@ alias zshrc="vim ~/.zshrc && source ~/.$(basename $SHELL)rc" | |||
7 | alias bashrc="vim ~/.bashrc && source ~/.$(basename $SHELL)rc" | 7 | alias bashrc="vim ~/.bashrc && source ~/.$(basename $SHELL)rc" |
8 | alias vimrc='vim ~/.vimrc' | 8 | alias vimrc='vim ~/.vimrc' |
9 | alias tigrc="vim $SETTING_DIR/tigrc" | 9 | alias tigrc="vim $SETTING_DIR/tigrc" |
10 | alias muttrc="vim ~/.muttrc" | ||
10 | alias gitconfig='vim ~/.gitconfig' | 11 | alias gitconfig='vim ~/.gitconfig' |
11 | alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" | 12 | alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" |
12 | 13 | ||
@@ -207,7 +208,11 @@ function image_vertical() { | |||
207 | convert $@ -append output.png | 208 | convert $@ -append output.png |
208 | } | 209 | } |
209 | 210 | ||
211 | # mail mutt | ||
212 | alias m='mutt' | ||
213 | |||
210 | # misc | 214 | # misc |
215 | alias foo="echo bar > foo && echo File foo is created && ls -lh foo" | ||
211 | alias token="cd $SETTING_DIR/tokens && ls -lh" | 216 | alias token="cd $SETTING_DIR/tokens && ls -lh" |
212 | alias gr='_grepString' | 217 | alias gr='_grepString' |
213 | function _grepString() { | 218 | function _grepString() { |
@@ -103,7 +103,7 @@ bind main bbD ?>git branch -D %(branch) | |||
103 | bind main brd ?git branch -rd %(remote)/%(branch) | 103 | bind main brd ?git branch -rd %(remote)/%(branch) |
104 | bind main bv +sh -c "git branch -vv | grep %(branch)" | 104 | bind main bv +sh -c "git branch -vv | grep %(branch)" |
105 | bind main bm @git branch -m %(branch) "%(prompt New branch name: )" | 105 | bind main bm @git branch -m %(branch) "%(prompt New branch name: )" |
106 | bind main bM @git branch -f "%(prompt Move which branch to here? )" %(commit) | 106 | bind main bM @git branch --force "%(prompt Move which branch to here? )" %(commit) |
107 | bind main c @sh -c "git branch --points-at=%(commit) | \ | 107 | bind main c @sh -c "git branch --points-at=%(commit) | \ |
108 | sed -n '/^*/ {n;p}' | \ | 108 | sed -n '/^*/ {n;p}' | \ |
109 | (cat -; echo %(commit)) | \ | 109 | (cat -; echo %(commit)) | \ |
@@ -129,7 +129,7 @@ bind main pp ?git push | |||
129 | bind main pP ?git push -u %(remote) %(branch):%(branch) | 129 | bind main pP ?git push -u %(remote) %(branch):%(branch) |
130 | bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) | 130 | bind main pr ?git push -u '%(prompt Which remote? )' %(branch):%(branch) |
131 | bind main pR ?git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )' | 131 | bind main pR ?git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )' |
132 | bind main pF ?git push -f | 132 | bind main pF ?git push --force |
133 | bind main pd ?git push %(remote) :%(branch) | 133 | bind main pd ?git push %(remote) :%(branch) |
134 | bind generic pD ?git push '%(prompt Delete from which remote? )' :'%(prompt Which reference? )' | 134 | bind generic pD ?git push '%(prompt Delete from which remote? )' :'%(prompt Which reference? )' |
135 | 135 | ||
@@ -234,7 +234,7 @@ bind status D ?>git clean -dfx | |||
234 | 234 | ||
235 | # solve conflict | 235 | # solve conflict |
236 | bind status U ?>git reset --hard | 236 | bind status U ?>git reset --hard |
237 | bind status gc @git clean -f | 237 | bind status gc @git clean --force |
238 | bind status Ba @git rebase --abort | 238 | bind status Ba @git rebase --abort |
239 | bind status Bc @git rebase --continue | 239 | bind status Bc @git rebase --continue |
240 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | 240 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" |