mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
rsync: add plugin
This commit is contained in:
parent
ed990f61ff
commit
c5a01fe422
1 changed files with 15 additions and 0 deletions
15
plugins/rsync/rsync.plugin.zsh
Normal file
15
plugins/rsync/rsync.plugin.zsh
Normal file
|
@ -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"
|
||||
}
|
Loading…
Reference in a new issue