diff options
author | Hsieh Chin Fan <typebrook@topo.tw> | 2022-12-19 11:02:35 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@topo.tw> | 2022-12-19 11:02:35 +0800 |
commit | 5d71bea9102f4fc40917253580844a279df6c597 (patch) | |
tree | cedb97120c9114321f2c79e837803a1240b281b4 /alias | |
parent | 77c1e319dfa71a38ad31e33fb0fc50da49ed952f (diff) |
Update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ vp() { | |||
210 | 210 | ||
211 | # Edit locally | 211 | # Edit locally |
212 | vim $tmpfile --cmd "autocmd BufWritePost $tmpfile silent! :!setsid scp % vps:$post &" && \ | 212 | vim $tmpfile --cmd "autocmd BufWritePost $tmpfile silent! :!setsid scp % vps:$post &" && \ |
213 | cat $tmpfile | ssh vps "cd ~/blog && cat >$post && git add $post && git commit -m 'update'" && \ | 213 | cat $tmpfile | ssh vps "cd ~/blog && cat >$post && git add $post && git commit -m 'Update with vim'" && \ |
214 | rm $tmpfile | 214 | rm $tmpfile |
215 | fi | 215 | fi |
216 | } | 216 | } |