mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-16 17:06:48 +08:00
rsync: add rsync- prefixes and use aliases
This commit is contained in:
1 parent
c5a01fe422
commit
1d17502aed
1 file changed
+4
-15
@@ -1,15 +1,4 @@
|
|||||||
function copy {
|
alias rsync-copy="rsync -av --progress -h"
|
||||||
rsync -av --progress -h "$1" "$2"
|
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"
|
||||||
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"
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user