浏览代码

rsync: add rsync- prefixes and use aliases

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

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

@@ -1,15 +1,4 @@
-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"
-}
+alias rsync-copy="rsync -av --progress -h"
+alias rsync-move="rsync -av --progress -h --remove-source-files"
+alias rsync-update="rsync -avu --progress -h"
+alias rsync-synchronize="rsync -avu --delete --progress -h"