aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@topo.tw>2022-12-19 11:02:35 +0800
committerHsieh Chin Fan <typebrook@topo.tw>2022-12-19 11:02:35 +0800
commit5d71bea9102f4fc40917253580844a279df6c597 (patch)
treecedb97120c9114321f2c79e837803a1240b281b4
parent77c1e319dfa71a38ad31e33fb0fc50da49ed952f (diff)
Update
-rw-r--r--alias2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias b/alias
index dadbe5e..0c03e6b 100644
--- a/alias
+++ b/alias
@@ -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}