浏览代码

rsync: add plugin

meh 14 年之前
父节点
当前提交
c5a01fe422
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      plugins/rsync/rsync.plugin.zsh

+ 15 - 0
plugins/rsync/rsync.plugin.zsh

@@ -0,0 +1,15 @@
+function copy {
+    rsync -av --progress -h "$1" "$2"
+}
+
+function move {
+    rsync -av --progress -h --remove-source-files "$1" "$2"
+}
+
+function update {
+    rsync -avu --progress -h "$1" "$2"
+}
+
+function synchronize {
+    rsync -avu --delete --progress -h "$1" "$2"
+}