diff options
author | meh <meh@paranoici.org> | 2011-06-15 16:15:52 +0200 |
---|---|---|
committer | meh <meh@paranoici.org> | 2011-06-15 16:15:52 +0200 |
commit | c5a01fe422c0b511be5972735b1dd9ac22a82dff (patch) | |
tree | bf7e9433d81e4d80156c29c71a984fb8ed370665 /plugins/rsync | |
parent | ed990f61ff66a5c409ef2d8a444820cecf098188 (diff) | |
download | zsh-c5a01fe422c0b511be5972735b1dd9ac22a82dff.tar.gz zsh-c5a01fe422c0b511be5972735b1dd9ac22a82dff.tar.bz2 zsh-c5a01fe422c0b511be5972735b1dd9ac22a82dff.zip |
rsync: add plugin
Diffstat (limited to 'plugins/rsync')
-rw-r--r-- | plugins/rsync/rsync.plugin.zsh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/rsync/rsync.plugin.zsh b/plugins/rsync/rsync.plugin.zsh new file mode 100644 index 000000000..5e28f346c --- /dev/null +++ b/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" +} |