summaryrefslogtreecommitdiff
path: root/plugins/rsync
diff options
context:
space:
mode:
authormeh <meh@paranoici.org>2011-07-16 07:18:14 +0200
committermeh <meh@paranoici.org>2011-07-16 07:18:14 +0200
commit1d17502aed5fc04cd1ca3eb35757b5ba2822414a (patch)
tree04b11288bdea0a66e43719f7e9aa419eabbf5b70 /plugins/rsync
parentc5a01fe422c0b511be5972735b1dd9ac22a82dff (diff)
downloadzsh-1d17502aed5fc04cd1ca3eb35757b5ba2822414a.tar.gz
zsh-1d17502aed5fc04cd1ca3eb35757b5ba2822414a.tar.bz2
zsh-1d17502aed5fc04cd1ca3eb35757b5ba2822414a.zip
rsync: add rsync- prefixes and use aliases
Diffstat (limited to 'plugins/rsync')
-rw-r--r--plugins/rsync/rsync.plugin.zsh19
1 files changed, 4 insertions, 15 deletions
diff --git a/plugins/rsync/rsync.plugin.zsh b/plugins/rsync/rsync.plugin.zsh
index 5e28f346c..33a31a5c1 100644
--- a/plugins/rsync/rsync.plugin.zsh
+++ b/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"